Re: if (empty(trim('x'))) == parse error?

From: Date: Wed, 28 Nov 2001 22:57:40 +0000
Subject: Re: if (empty(trim('x'))) == parse error?
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-71967@lists.php.net to get a copy of this message
Andrey Hristov wrote:
From the docs for empty(): "Note that this is meaningless when used on anything which isn't a variable; i.e. empty (addslashes ($name)) has no meaning since it would be checking whether something which isn't a variable is a variable with a FALSE value. "
Maybe I am not so clever, but the document writer tried to explain that empty()'s flaw is a feature. The correct doc should contain lvalue instead of variable. -- jul

« previous php.dev (#71967) next »