Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "<>" mean in this PHP code?

Tags:

php

if ($varr <> '') {

}

I know boolean operators "||", "&&" "AND" "OR", but "<>", I am seeing for the first time.

like image 948
user635443 Avatar asked Nov 29 '22 03:11

user635443


2 Answers

"Not equal to," like SQL. Exactly the same operator as !=.

http://php.net/manual/en/language.operators.comparison.php

like image 77
Matt Ball Avatar answered Nov 30 '22 18:11

Matt Ball


It means !=. And my answer has to be 30 characters long.

like image 24
dialer Avatar answered Nov 30 '22 18:11

dialer