Re: different and logic between PHP4 and PHP5
| From: | Jon Anderson | Date: | Tue, 13 Mar 2007 13:29:11 +0000 |
| Subject: | Re: different and logic between PHP4 and PHP5 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-250415@lists.php.net to get a copy of this message | ||
Vieri wrote:
I didn't code this. We have inherited some code that worked this way in php4: if string1 and string2 exist then return true or 1 else return false or 0 in php5 it just doesn't behave the same way. Rather than echo, try var_dump. You'll find that it's returning a boolean, which is what you want according to the above paragraph?jon