array_key and array_value

From: Date: Sat, 30 Jun 2001 16:35:43 +0000
Subject: array_key and array_value
Groups: php.dev 
Request: Send a blank email to php-dev+get-58497@lists.php.net to get a copy of this message
Hello php-dev, $a = array ( 'one' => '1', 'two' => '2', 'three' => '3', ); $k = array_keys($a); $v = array_value($a); Whether the condition will be true: $a[$k[$i]] == $v[$i] ? for $i from 0 to count($a)-1 P.S. This question has arisen as perl (for example) does not guarantee the order elements in hash. Best regards, Andrew Sitnikov e-mail : sitnikov@infonet.ee GSM: (+372) 56491109

« previous php.dev (#58497) next »