On 12 March 2007 23:06, Richard Lynch wrote: > 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' Why in the world would you use 'and' on two numbers? What is that supposed to even mean?... Type-cast them to bool if you want to use 'and' ... ;) ;) Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: m.ford@xxxxxxxxxxxxxx Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php