Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #17641

Re: array_filter with two conditions

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.php
Subject Re: array_filter with two conditions
Date Fri, 5 Jan 2018 02:10:02 +0100
Lines 24
Message-ID <fb81jaFpc8eU2@mid.individual.net> (permalink)
References <fe3760f6-83ed-47b3-8402-880fd3d26408@googlegroups.com>
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 <fe3760f6-83ed-47b3-8402-880fd3d26408@googlegroups.com>
Xref csiph.com comp.lang.php:17641

Show key headers only | View raw


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:

<http://php.net/manual/en/function.array-filter.php>

And pay attention to the examples!


-- 
Arno Welzel
https://arnowelzel.de
https://de-rec-fahrrad.de
http://fahrradzukunft.de

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

array_filter with two conditions jans <janis.rough@gmail.com> - 2018-01-04 16:11 -0800
  Re: array_filter with two conditions Jerry Stuckle <jstucklex@attglobal.net> - 2018-01-04 20:03 -0500
  Re: array_filter with two conditions Arno Welzel <usenet@arnowelzel.de> - 2018-01-05 02:10 +0100
  Re: array_filter with two conditions "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-01-05 13:29 +0100
    Re: array_filter with two conditions jans <janis.rough@gmail.com> - 2018-01-08 14:29 -0800
  Re: array_filter with two conditions Postiljon Petskin <yyyyyyyyyyyywwwww@zohomail.eu> - 2023-04-22 08:47 -0700

csiph-web