Re: [PHP] Strange key behaviour

2005-02-08 Thread Richard Lynch
Johannes Reichardt wrote: > 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

Re: [PHP] Strange key behaviour

2005-02-07 Thread Guillermo Rauch
On Tue, 08 Feb 2005 00:19:20 +0100, Johannes Reichardt <[EMAIL PROTECTED]> wrote: > Hey there! Hi Johannes > > 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); // outpu

[PHP] Strange key behaviour

2005-02-07 Thread Johannes Reichardt
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 -- PHP General Mailing Lis