View Full Version : && vs and

Xiong Chiamiov
01-16-2008, 09:55 AM
It's been a while since I've done any php, since I've been working on C for my classes (and consequently, my brain is ruined forever). Part of that is that I've switched from writing "and" into using "&&".
Aside from the many bugs I've been running into this evening, one that I found was that I needed to use the word "and" instead of the amps, even though both *should* be accepted the same. I was just curious if this was a setting in the php.ini file or something.

01-16-2008, 10:01 AM
go check this out it should give you most of the info you requrie

PHP.net (http://uk.php.net/manual/en/language.operators.php#language.operators.precedence)