Bug #1086 Updated: sort() does not compare after first word

From: Date: Thu, 21 Jan 1999 18:11:43 +0000
Subject: Bug #1086 Updated: sort() does not compare after first word
Groups: php.dev 
Request: Send a blank email to php-dev+get-3669@lists.php.net to get a copy of this message
ID: 1086 Updated by: rasmus Reported By: dreich@norsec.com Status: Closed Bug Type: Misbehaving function Assigned To: Comments: You must be doing something wrong. sort() works fine. Try this script, for example: $BigArray = array("HOWTO talk", "HOWTO listen", "HOWTO be quiet"); sort($BigArray); while(list($k,$v)=each($BigArray)) { echo "$k: $v\n"; } This prints out: 0: HOWTO be quiet 1: HOWTO listen 2: HOWTO talk Full Bug description available at: http://ca.php.net/bugs.php3?id=1086 -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#3669) next »