Previous | Home | Next |
<html> <head> <title>difference in associate array</title> </head> <body> <?php $array = array("A" => "Harsh", "B" => "Aditya", "C" => "Rajesh"); $array1 = array("10" => "Rajesh", "B" => "Harsh", "C" => "Aditya"); $array2 = array("D" => "Allahabad", "E" => "Kanpur", "F" => "Varanasi"); $diff = array_diff_assoc($array, $array2, $array3); print_r($diff); ?> </body> </html>
Output:
Previous | Home | Next |