php and deleteing variable on from 2 array -


array1 (     [0] => 14     [1] => 9     [2] => 10     [3] => 11 )   array2 (     [0] => 8     [1] => 9     [2] => 10     [3] => 11     [4] => 12     [5] => 13     [6] => 14     [7] => 15     [8] => 16     [9] => 17     [10] => 18     [11] => 19     [12] => 20     [13] => 21     [14] => 22     [15] => 23     [16] => 24 

some function delete array1 values on array 2 , create array3 whit results ?

thanks !

the array_diff function you're looking for. credit paulpro source of found function: https://stackoverflow.com/a/7241152/4912760. code example case:

$array3 = array_diff($array2, $array1); 

Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

python - How to remove the Xframe Options header in django? -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -