News for hackers. Stuff that matters.
Re:Array-oriented Programming by courtewing on Sunday April 01, 2012 @10:26AM (#3783738)
You are correct. PHP arrays are actually just ordered maps, so "map-oriented programming" would be appropriate in PHP. However, there is no traditional array implementation in PHP, so calling it "map-oriented programming" within the context of PHP would be ambiguous.

That all said, this "technique" could be used with a traditional array, in theory. The array in the example is fixed-length, and the keys themselves aren't really used at all.

There are no comments on this comment yet.