Pavlos1316 Posted July 15, 2008 Share Posted July 15, 2008 Hi all, I have some if statements like: if result > 9; echo "blabla" and they're working. I need to have if result = 9 echo "blabla" but when I write this I get unexpected = in line 72. Is there another way to say = ??? Thanks Link to comment https://forums.phpfreaks.com/topic/114889-if-statement/ Share on other sites More sharing options...
discomatt Posted July 15, 2008 Share Posted July 15, 2008 if ( $value == 1 ) {} or if ( $value === 1 ) {} See: http://php.net/manual/en/language.operators.comparison.php Link to comment https://forums.phpfreaks.com/topic/114889-if-statement/#findComment-590820 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.