Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62366 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54761 invoked from network); 21 Aug 2012 21:44:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Aug 2012 21:44:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-lpp01m010-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:44844] helo=mail-lpp01m010-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 89/99-10139-12104305 for ; Tue, 21 Aug 2012 17:44:01 -0400 Received: by lahl5 with SMTP id l5so182456lah.29 for ; Tue, 21 Aug 2012 14:43:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZRVaNjcQNSbG0G8VTTpcpsrHtqxKFCloGbvdoLriGLs=; b=d/VqkHKJYp8mJGgYfWqo13SAtL8UBk7CjzhlE4FSvpnLvyyMymIXkI8+KHG4A72YWi zIs3v2NQSqAzfDFA6CeDEYdc7p6wgUhnQdlDJ98+4AXDHRCgfkkyr7b+bZAXewdRpRu5 ftTFna01LtudS6BnBg9Nw3uC4qVdVTxL0OWhmzy0ZE4VYpxh2u5rSDTrSDEoMfRDBY4E kNpNAtHtfYqr6SWaPdfdBe8hCeEgUQ81OUJoEfTsU3hdLoCrdNyzPdCw5nFdiNjXDEcv a3FG6JNI0zBP3gfLmvYfpSPK2RwA6ds24zBHwKz/q+i+AXQ+uh62qUF0xenv1xbKu0Ea REYw== MIME-Version: 1.0 Received: by 10.152.108.144 with SMTP id hk16mr18873052lab.2.1345585438657; Tue, 21 Aug 2012 14:43:58 -0700 (PDT) Received: by 10.112.89.174 with HTTP; Tue, 21 Aug 2012 14:43:58 -0700 (PDT) In-Reply-To: <5033FF96.5030105@ajf.me> References: <5033E0BC.8040507@ajf.me> <5033EAAB.6090502@ajf.me> <5033F1EA.4070701@ajf.me> <5033FD9C.6080106@ajf.me> <5033FF96.5030105@ajf.me> Date: Tue, 21 Aug 2012 15:43:58 -0600 Message-ID: To: Andrew Faulds Cc: Yasuo Ohgaki , Tjerk Anne Meesters , Rasmus Schultz , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] re: removing an item from an array From: morrison.levi@gmail.com (Levi Morrison) There is a reason to have a callable provided: custom comparison. Other array functions solve this by providing a `u` alternative: `int array_udelete(&$array, $value, bool function($value, $key))` Let's not deviate from established array naming conventions. (Yasuo, I'm looking at you) Cheers, Levi Morrison