Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #17641
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: array_filter with two conditions |
| Date | 2018-01-05 02:10 +0100 |
| Message-ID | <fb81jaFpc8eU2@mid.individual.net> (permalink) |
| References | <fe3760f6-83ed-47b3-8402-880fd3d26408@googlegroups.com> |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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