You are here: Re: Macros in php « PHP Programming Language « IT news, forums, messages
Re: Macros in php

Posted by Jerry Stuckle on 11/18/33 11:44

Oli Filth wrote:
> 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?
>
>

Try turning on all warnings.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация