1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<?php $a = array( '1' => 12, '3' => 14, '6' => 11 ); $b = array( '1' => 12, '3' => 14, '6' => 11 ); echo ($a === $b) ? 'they\'re same' : 'they\'re different'; echo "\n"; $b['1'] = 11; echo ($a === $b) ? 'they\'re same' : 'they\'re different';
1 2
they're same they're different