Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42144 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73300 invoked from network); 8 Dec 2008 13:01:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Dec 2008 13:01:27 -0000 Authentication-Results: pb1.pair.com header.from=cschneid@cschneid.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=cschneid@cschneid.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain cschneid.com from 195.141.85.117 cause and error) X-PHP-List-Original-Sender: cschneid@cschneid.com X-Host-Fingerprint: 195.141.85.117 uf1.search.ch Linux 2.6 Received: from [195.141.85.117] ([195.141.85.117:41634] helo=smtp.rim.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A0/13-57775-5AA1D394 for ; Mon, 08 Dec 2008 08:01:26 -0500 Received: from localhost (localhost [127.0.0.1]) by qvot.search.ch (Postfix) with ESMTP id BABA36929C; Mon, 8 Dec 2008 14:01:22 +0100 (CET) X-Virus-Scanned: amavisd-new at search.ch Received: from smtp.rim.ch ([127.0.0.1]) by localhost (search.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jw49R4f6Fmn1; Mon, 8 Dec 2008 14:01:17 +0100 (CET) Received: from [192.168.1.72] (ultrafilter-i [192.168.85.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by qvot.search.ch (Postfix) with ESMTPSA id A1682691B2; Mon, 8 Dec 2008 14:01:17 +0100 (CET) Message-ID: <493D1A9C.70803@cschneid.com> Date: Mon, 08 Dec 2008 14:01:16 +0100 User-Agent: Thunderbird 1.5.0.12 (X11/20060911) MIME-Version: 1.0 To: Igor Feghali CC: PHP Internals List References: <1228604866.18444.3.camel@localhost> <1228611165.18444.7.camel@localhost> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Implode() FR and Patch From: cschneid@cschneid.com (Christian Schneider) 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