jueves, 15 de diciembre de 2016

Array comparison

array_diff_assoc
Compares array1 against array2 and returns the difference. Unlike array_diff() the array keys are also used in the comparison.


array_diff_key



Compares the keys from array1 against the keys from array2 and returns the difference. This function is like array_diff() except the comparison is done on the keys instead of the values.



array_diff

Compares array1 against one or more other arrays and returns the values in array1 that are not present in any of the other arrays.


array_diff_ukey

Compares the keys from array1 against the keys from array2 and returns the difference. This function is like array_diff() except the comparison is done on the keys instead of the values.

No hay comentarios:

Publicar un comentario