|
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!
Navigation:
[Reply to this message]
|