php array filter
Posted
by benmsia
on Stack Overflow
See other posts from Stack Overflow
or by benmsia
Published on 2010-05-10T11:34:09Z
Indexed on
2010/05/10
11:44 UTC
Read the original article
Hit count: 294
Hi i would like to filter array in php. for example
$a = ARRAY('a', 'b', 'c', 'd', 'e');
$b = ARRAY('c', 'd');
$a will be filtered by values in array $b
and result is ['a', 'b', 'e']
may I know how to do it in php?
Thank you.
© Stack Overflow or respective owner