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]
|