Strange key behaviour
| From: | Johannes Reichardt | Date: | Mon, 07 Feb 2005 23:19:20 +0000 |
| Subject: | Strange key behaviour | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-208215@lists.php.net to get a copy of this message | ||
Hey there!
i have a routine like this:
$myarray['1'] = 'aösldfjkasöldkjf';
foreach($myarray as $key => $value) {
echo $key{0}; // outputs nothing
echo substr($key,0); // outputs 1 like intended
}
Any ideas why this is like that? I am using
php 4.3.11-dev
- Johannes