Is JavaScript Object nothing but an associative array?
<p>Ok am just going through basics of JavaScript and I was learning <code>objects</code> where I came across this example...</p>

<p>JavaScript</p>

<pre><code>var person = {
   firstname : "Smith",
   lastname  : "Bach"
};
</code></pre>

<p>And what we write in PHP is</p>

<pre><code>$person = array(
    "firstname"=&gt;"Smith", 
    "lastname"=&gt;"Bach"
);
</code></pre>

<p>So is this the same thing or am making a mistake in understanding the concept?</p>
