define('foo',
'bar');
if (empty(foo)) {
echo
'qux';
}
rel="nofollow">http://codepad.org/G1TSK1c6
Parse error: syntax
error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM on line
4
I know that
empty()
only allows variables to be passed as an argument, but
why does it expect a T_PAAMAYIM_NEKUDOTAYIM (i.e. ::
) when I
give it a constant?
No comments:
Post a Comment