|
Posted by Taras_96 on 02/05/07 05:33
On Feb 4, 7:24 pm, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
> 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.
Ah hah! Thanks for that, it clears a few things up for me
Taras
Navigation:
[Reply to this message]
|