PHP array_flip() & intersect () functions
The function reverses the contents of an array with the keys as values and the values as keys with the following syntax: array_flip(array) Legend: array – array(name of the array) to be flipped Sample Code: Output : Array([Lizard] => 0 [Mouse] => 1 [Fish] => 2 ) PHP array_intersect() function Compares two or more arrays, [...]
Filed under: Sample Code by Avatar
No Comments »