Thursday, September 4, 2008

PHP array difference

<?php    
$array1 = array("a" => "php", "string", "array", "PHP");   
$array2 = array("b" => "php", "PHP", "string");    
$result = array_diff($array1, $array2);   
print_r($result);
?>

2 comments:

SEO Chandigarh said...

what is PHP please tell me some think about this laungage and I am seeo then how is my help in my work

free tutorials said...

Hey thanks a lot for sharing such a nice and informative information on php array..........

By the way check out my collection of php interview questions from the following link: php interview questions