Re: different and logic between PHP4 and PHP5
| From: | Richard Lynch | Date: | Mon, 12 Mar 2007 23:05:50 +0000 |
| Subject: | Re: different and logic between PHP4 and PHP5 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-250345@lists.php.net to get a copy of this message | ||
On Mon, March 12, 2007 1:53 pm, Vieri wrote:
> The following code:
>
> <?php
> $b="";
> $c="df";
> $a=($b and $c);
Why in the world would you use 'and' on two strings?
What is that supposed to even mean?...
Type-cast them to numbers if you want to use 'and'
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?