Path: csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: de.comp.lang.php Subject: Re: Komplexe oder-Vergleiche optimieren Date: Tue, 22 Mar 2016 12:40:36 +0100 Organization: solani.org Lines: 13 Message-ID: References: <5t56ed3797i781bn3e8%sfroehli@Froehlich.Priv.at> <56EE6151.8070405@arnowelzel.de> <1896233.7jEbrbfNVf@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: solani.org 1458646817 8633 eJwNxcERwDAIA7CV4IJNO04wsP8IrT7CoVMZBAOLbWhoZtIxf2wwkZv18nr9aa2yO2806xT0ASKvEbU= (22 Mar 2016 11:40:17 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 22 Mar 2016 11:40:17 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 X-User-ID: eJwFwYEBwCAIA7CXAG2d5zCg/59ggkVnnU1wQxDbjTcR13KiNDGOL5c7auK2OJDUtnhafz4cyhHA In-Reply-To: <1896233.7jEbrbfNVf@PointedEars.de> Cancel-Lock: sha1:9sWFP276+YCQd+ziH3DMxGxVOlo= X-NNTP-Posting-Host: eJwFwYEBwCAIA7CXEGnFc2SU/09Ygs3F7wTBwGCeFLnEin5MWTbuaI6XxOPv3sldiK5e5jY/Nd0R0Q== Xref: csiph.com de.comp.lang.php:3793 Thomas 'PointedEars' Lahn schrieb: > Als Lösung für Problem X würde ich hier entweder eine Funktion, welche über > ein Array iteriert und abbricht, sobald ein Array-Element einer Bedingung > genügt – etwas wie ECMAScript’s Array.prototype.some() gibt es anscheinend > noch nicht in PHP, [...] Einen PR für array_some|any gibt es allerdings schon seit einer ganzen Weile: . :) -- Christoph M. Becker