Reply to Re: How does PHP store strings?

Your name:

Reply:


Posted by Toby A Inkster on 02/04/07 09:24

Taras_96 wrote:

> This behaviour leads me to believe that strings in PHP are something
> more than just null-terminated byte sequences in PHP.

Correct. Internally, PHP stores the integer length of the string as well
as the data itself, so it knows how long the string is, and doesn't get
fooled by NULL bytes part-way along the string.

But unless you're writing compiled extensions to PHP, you really don't
need to know about any of that.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/CSS/Javascript/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация