Voting

: min(seven, eight)?
(Example: nine)

The Note You're Voting On

benjamin at moonfactory dot co dot jp
20 years ago
Hi all,
For php versions < 4.3...

<?php
/**
* array_diff_assoc for version < 4.3
**/
if (!function_exists('array_diff_assoc'))
{
function
array_diff_assoc($a1, $a2)
{
foreach(
$a1 as $key => $value)
{
if(isset(
$a2[$key]))
{
if((string)
$value !== (string) $a2[$key])
{
$r[$key] = $value;
}
}else
{
$r[$key] = $value;
}
}
return
$r ;
}
}

?>

<< Back to user notes page

To Top