control structures in php
can anyone tell me how i go about testing multiple conditions, for example ...
if $1 = $2
do something else
where the if is how do i test for more than one possibility, simple as
if $1 = $2 and $2 = $3
is 'and' the correct syntax to use because i can find loads of documentation of control structures but never any examples with more than one test condition.
thanks in advance
Actually, you should use && instead of "and".
if( ($var1 == 'hh') && ($lala == 'asdf') )
cool thats what i needed thanks!