Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83293 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78979 invoked from network); 20 Feb 2015 12:54:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2015 12:54:33 -0000 Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.160 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.160 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.160] ([81.169.146.160:47579] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 56/A3-54878-68E27E45 for ; Fri, 20 Feb 2015 07:54:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1424436866; l=829; s=domk; d=kelunik.com; h=Content-Type:To:From:Subject:Date:MIME-Version; bh=bWAjaEbTeCiyEMseJkEXmjXFA5mAwZiUo2wIs2+3s1A=; b=XwBxWfG9+5p3AP+GcIBowGRyXpti3SrGCDLklh3lyn5W+WwqJFMeVFVWrUqYz1wo8Hl Wzloj8wmm2s8jmxuxCx9oYJyVc1lSoTRpOw0WKhk3Hy+Pz3wqs+WwPD4qeyWNewW1mI0N CkgNgfF6T+o04BI0XH55s5a9K/XNwO5rA+c= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLGvomb4bl9EfHtO3Q6 X-RZG-CLASS-ID: mo00 Received: from mail-wg0-f47.google.com ([74.125.82.47]) by smtp.strato.de (RZmta 37.3 AUTH) with ESMTPSA id g07435r1KCsQSWH (using TLSv1.2 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) for ; Fri, 20 Feb 2015 13:54:26 +0100 (CET) Received: by mail-wg0-f47.google.com with SMTP id x12so12969554wgg.6 for ; Fri, 20 Feb 2015 04:54:26 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.194.175.202 with SMTP id cc10mr18707533wjc.27.1424436866301; Fri, 20 Feb 2015 04:54:26 -0800 (PST) Received: by 10.27.77.131 with HTTP; Fri, 20 Feb 2015 04:54:26 -0800 (PST) Date: Fri, 20 Feb 2015 13:54:26 +0100 Message-ID: To: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: [RFC][Discussion] In Operator From: me@kelunik.com (Niklas Keller) Hi internals, "In Operator" is now in discussion phase. > This RFC adds a new in operator which simplifies contains checks for strings and arrays. > Currently, we have to usein_array($needle, $haystack, true) or strpos($haystack, $needle) !== false. > These functions have a inconsistent parameter order, so it's hard to remember which is the right one > for each. The in operator makes these checks way more readable. Additionally, it also works for Traversable. https://wiki.php.net/rfc/in_operator Question: The timline says "Line up any remaining RFCs that target PHP 7.0.", does that mean RFCs have to start voting on Mar 15 or should the vote end there? It would really make sense to vote on this RFC after there has been a vote on https://wiki.php.net/rfc/context_sensitive_lexer. Regards, Niklas