Re: Boolean type forced on string assignment inside if statement

From: Date: Wed, 02 Jan 2013 18:21:15 +0000
Subject: Re: Boolean type forced on string assignment inside if statement
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-319998@lists.php.net to get a copy of this message
> Won't this type of condition/test always return true? I simplified the example. In my real life case the "foo" and "bar" are variables which can be empty strings, and if they both are not, I would like to display them. Marc

« previous php.general (#319998) next »