|
Posted by Toby A Inkster on 05/15/07 21:13
NoWhereMan wrote:
> I'm not sure they're not garbage collected as, say, arrays; in fact strings
> are always array of chars,
No, they're not. Strings are arrays of characters in C, but not in PHP
where they're a primitive data type -- nothing to do with arrays.
If you need proof:
echo (is_array("Hello")?"Strings are arrays":"Strings are NOT arrays");
--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python/Apache/Linux
Navigation:
[Reply to this message]
|