Re: Implode() FR and Patch

From: Date: Mon, 08 Dec 2008 13:01:16 +0000
Subject: Re: Implode() FR and Patch
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-42144@lists.php.net to get a copy of this message
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

« previous php.internals (#42144) next »