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 : [EMAIL PROTECTED] GSM: (+372) 56491109 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]