On 11/18/2012 02:29 PM, tamouse mailing lists wrote:
> There are certain times I'd like to include all files in a given
> directory (such as configuration stuff that is split out by type, a la
> apache conf.d). Anyone have something handy that implements that?
> 

Just for fun:

array_walk(glob('*.php'), function($arg) { include($arg); });

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to