You are here: Re: Zend Certification PHP 5 : Difference between isset() and other is_*() functions « PHP Programming Language « IT news, forums, messages
Re: Zend Certification PHP 5 : Difference between isset() and other is_*() functions

Posted by ZeldorBlat on 12/28/06 14:42

oggy wrote:
> thanks a lot
> "isset() only works with variables" means that its not working with
> constants (only).
>

That's half of it. The other half is that it won't work with the
return value of a function call (directly). Consider the following:

function foo() {
return 1;
}

//This is ok:
$x = foo();
isset($x);

//But this throws a fatal error:
isset(foo());

 

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

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