Voting

: min(five, one)?
(Example: nine)

The Note You're Voting On

claude dot pache at gmail dot com
14 years ago
array_combine() has a strange bug/misfeature (as of PHP 5.3.2): There is no logical reason for <? array_combine(array(), array()) ?> throwing a warning and returning FALSE, instead of returning <? array() ?> (see http://bugs.php.net/bug.php?id=34857). Here is a quick workaround:
<?php
function array_real_combine($a, $b)
{
return
$a===array() && $b===array() ? array() : array_combine($a, $b);
}
?>

<< Back to user notes page

To Top