Re: How to Use Array's efficiently in PHP Hi Guys,
Here i have two arrays
$a = array(0,2,3,4)
$b = array(2,4)
i want to get the new array which only have elements like array(0,3) which does not have the elements in $b
So in this case we have to use array_diff functions as like this
$newarray = array_diff($a,$b)
$newarray contains the elements as (0,3)
__________________ With,
J. Jeyaseelan Everything Possible |