PHP Programing language

How can difference create in associate program
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:

Array ( [B] => Harsh [10]=>Rajesh  [C] => Aditya )
Previous Home Next

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: