note 80034 deleted from function.ksort by tularis

From: Date: Tue, 25 Dec 2007 23:49:53 +0000
Subject: note 80034 deleted from function.ksort by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134004@lists.php.net to get a copy of this message
Note Submitter: 2ik Reason: useless ---- $ar = Array( 1=>"lemon", 0=>"orange", 'd'=>"banana", // <-- key = 'd' 'a'=>"Kala", 'b'=>"apple", '3'=>"01apple", 4=>"10apple", 5=>"100apple", 6=>10, 7=>100, 8=>11 ); ksort($fruits); $fruits = Array( [a] => Kala , [b] => apple , [d] => banana , [0] => orange , [1] => lemon, [3] => 01apple, [4] => 10apple, [5] => 100apple , [6] => 10 , [7] => 100 , [8] => 11 ); // This is OK ! // = = = = = = = = = $ar = array( 1=>"lemon", 0=>"orange", 'D'=>"banana", // <-- key 'D' 'a'=>"Kala", 'b'=>"apple", '3'=>"01apple", 4=>"10apple", 5=>"100apple", 6=>10, 7=>100, 8=>11 ); ksort($fruits); $fruits = Array( [0] => orange // <-- ?? :| WTF // key = 0 // (null) [D] => banana , [a] => Kala , [b] => apple , [1] => lemon, [3] => 01apple , [4] => 10apple , [5] => 100apple , [6] => 10 , [7] => 100 , [8] => 11 );

« previous php.notes (#134004) next »