Igor Feghali wrote:
> // NOTE: leaving the callback function empty is not desired. 0 and 0.0
> should not be skipped in the implode array !
> array_filter($arr, 'myfunc');
> implode('foo', $arr);
> 
> against:
> 
> implode('foo', $arr, true);

implode('foo', array_filter($arr, 'myfunc'));

Simple enough and generic.
Not worth adding IMHO.

- Chris

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to