note 14267 rejected and deleted from language.types.string.php by zak
| From: | zak@php.net | Date: | Wed, 25 Jul 2001 17:10:29 +0000 |
| Subject: | note 14267 rejected and deleted from language.types.string.php by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15836@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"