On 28.11.2013. 21:01, Jacob Carlborg wrote: > On 2013-11-28 18:55, luka8088 wrote: > >> PHP also allows it: >> >> $data = array('a' => 1, 'a' => 2); >> >> And I find it to be only a source of bugs. > > Arrays are a weird beast in PHP. They're both arrays and associative > arrays, at the same time, somehow. >
They are associative array which can emulate array like behavior. But unfortunately that has also in my experience turned out to be just another source of bugs.