News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Felix Geisendorfer's Blog:
My new best friend - PHP's create_function()
May 18, 2007 @ 16:27:16

In a new post to his blog today, Felix Geisendorfer wants to introduce you to his new best friend in the wonderful world of PHP - the create_function function.

His name is 'create_function' and he's a really useful co-worker. For those of you who just vaguely know him - don't worry, he's not so much like his ev(a|i)l cousin. Well, that doesn't mean he can't be harmful, but he's more likely to help you instead.

To show why he's such a good friend, Felix includes some example code to help solve a fictional problem of a manager wanting to filter down the information about a few perspective programmers. The create_function function gives the code the ability to run various bits of code (like a call to in_array or counting the values in an array).

0 comments voice your opinion now!
createfunction example loop filter createfunction example loop filter


blog comments powered by Disqus

Similar Posts

Brandon Savage's Blog: FIEO: Filtering Input with PHP's Filter Functions

Alexey Zakhlestin's Blog: Ode to mb_ereg functions

Matthias Noback: Inject a repository instead of an entity manager

PHP Thinktank Blog: AJAX with Elazar (IRC Talk Series)

Jani Hartikainen's Blog: Zend_Acl part 1: Misconceptions and simple ACLs


Community Events

Don't see your event here?
Let us know!


library list wordpress version release opinion language interview podcast voicesoftheelephpant introduction extension framework php7 community laravel5 api series laravel unittest

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework