Is there a shorter way to write this if() statement?
if($tStatus == '1' || $tStatus == '0'){ // blah blah
I ask because I know sql statements can use the IN statement: IN('1','0')
Just curious if it is similar in PHP.
thanks!
Not really, but if you are checking against more than two values you could consider [man]in_array/man, e.g.,
if (in_array($tStatus, array('2', '1', '0')))