Home »

Difference between if(‘value’==$var) and if($var==’value’)?

Question ListCategory: PHPDifference between if(‘value’==$var) and if($var==’value’)?
jamessmith05 author asked 10 years ago
1 Answers
ethanbrown author answered 8 years ago

Here, if the value is non-zero, then if($var==’value’) is true and it will execute. If you put the value on the left, then it throws the PHP parse time error.

Please login or Register to Submit Answer