issues with ksort()

From: Date: Fri, 07 Feb 2003 17:09:10 +0000
Subject: issues with ksort()
Groups: php.general 
Request: Send a blank email to php-general+get-134753@lists.php.net to get a copy of this message
What else does ksort() do to the array??? Does it matter that my keys look like this: '[some-text]'??? This works great: foreach($myarray as $key => $val) { echo "$key = $val"; } This gives me a Warning: Invalid argument supplied for foreach(): $sortedarray = ksort($myarray); foreach($sortedarray as $key => $val) { echo "$key = $val"; } Any ideas??? TIA -Shawn

« previous php.general (#134753) next »