ProDevTips.com: This is what's wrong with PHP

Courtesy PHPDeveloper.org  Thu, 10/01/2009 - 07:10

On the ProDevTips blog today Henrik describes a situation where he "tried to be clever" with the array_map and array_filter functions and some of the confusion in their usage.

I knew array_filter existed and what it was all about since before, however I started working with something requiring array_map first, all well and OK, array_map looks like this: array_map('callback', Array).

So then I assumed I could use array_filter in the same fashion, big mistake. ...


 

More related items

Answers to some common kernel.org account questions
LKML: We (the kernel.org team) have noticed a fair amount of confusion about the procedure for the reinstatement of kernel.org accounts.

Clarification on Android, its (Lack of)...
Brad Kuhn: Lots of confusion around android and the GPL

Site News: Popular Posts for the Week of 02.18.2011
Popular posts from PHPDeveloper.org for the past week:Lorna Mitchell's Blog: Callbacks in PHP Zend Developer Zone: A little fun with the average tech salaries as reported by dice.com Phil...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com