note 14267 added to language.types.string.php
| From: | abk at avatartechnology dot com | Date: | Tue, 24 Jul 2001 19:50:29 +0000 |
| Subject: | note 14267 added to language.types.string.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15785@lists.php.net to get a copy of this message | ||
It doesn't say so here but you CAN assign to strings by index and use them transparently in
arrays. This works:
$foo = "foo";
$foo[0] = "b"; // $foo == "boo"
$bar = array();
$bar[] = $foo; // $bar[0][0] == "b"
http://www.php.net/manual/en/language.types.string.php