Posted by Oli Filth on 11/18/12 11:44
Jerry Stuckle said the following on 08/04/2006 21:51:
> Oli Filth wrote:
>> function getWithDefault(&$array, $key, $default = NULL)
>> {
>> return (isset($array[$key])) ? $array[$key] : $default;
>> }
>>
>>
>
> And if $array is empty you get a warning.
>
You do? I don't. Nor can I see any reason why one should get a
warning. What version of PHP are you running?
--
Oli
[Back to original message]
|