Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: array_filter with two conditions Date: Fri, 5 Jan 2018 02:10:02 +0100 Lines: 24 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net 664Lz2pMhk0u7+/5SfnAxwrDTpvaDKleRiJIZCXzGkJ+LY31jP Cancel-Lock: sha1:HlD5se68mHWs9ZpPQt0sh46Afos= In-Reply-To: Xref: csiph.com comp.lang.php:17641 jans: [...] > if ($arr_filter($arr,'even')==1){ > print_r($array[$key];); > }elseif($arr_filter($arr,'odd')==1) > { > print_r('odd'); > } What is $arr_filter( ... )? Also see: And pay attention to the examples! -- Arno Welzel https://arnowelzel.de https://de-rec-fahrrad.de http://fahrradzukunft.de