PHP Tip of the Day: Array Indexing
Wednesday, September 5th, 2007Ok, I’m not really going to do a PHP tip every day, but here’s something I learned the hard way. I normally don’t index an array like this, but for some reason one day I decided to try it and it came back to haunt me.
$myarray[03] != $myarray[3]
In fact,
$myarray[03] == $myarray[0]
Go figure.
(more…)