How does the equivalence operator work with arrays in PHP?
<p>Code:</p>

<pre><code>$arr = array( 10, 20, 30 );
$arr1 = array(
       1=&gt;30,
       2=&gt;20,
       0=&gt;10
);
var_dump( $arr == $arr1 );

$a = array( 1, 2, 3);
$b = array(
       1=&gt;2,
       2=&gt;3,
       0=&gt;1
 );
var_dump($a == $b);
</code></pre>

<p>This outputs:</p>

<pre><code>bool(false)
bool(true)
</code></pre>
