RE: [PHP] Watch out for automatic type casting

From: Date: Fri, 30 Mar 2012 06:42:12 +0000
Subject: RE: [PHP] Watch out for automatic type casting
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-317363@lists.php.net to get a copy of this message
-----Original Message----- From: Simon Schick [mailto:simonsimcity@googlemail.com] Sent: 29 March 2012 07:19 PM To: arno@dotcontent.net Cc: php-general@lists.php.net Subject: Re: [PHP] Watch out for automatic type casting Hi, Arno FYI: I found a page in the php-manual that's exactly for that: http://www.php.net/manual/en/language.operators.precedence.php p.s. some of them were also new to me .... Thanks for getting me to read it. Bye Simon ---- Thanks Simon and others, thought it was typecasting, but precedence makes more sense. I remember seeing that table when I first started using php, which is why I always use AND and OR rather than && and || because it's lower precedence than the assignment and the ternary operators, but I couldn't remember where I'd seen it. So thanks for linking to it. Cheers Arno

« previous php.general (#317363) next »