What does the <>
operator mean exactly?
Is it the same as !=
(not equal)?
Sample code
$foo = 'text';
if ($foo <> 'photo') {
echo 'foo';
}
else {
echo 'bar';
}
What does the <>
operator mean exactly?
Is it the same as !=
(not equal)?
$foo = 'text';
if ($foo <> 'photo') {
echo 'foo';
}
else {
echo 'bar';
}
That would be correct. It's pretty universal between languages. I usually use that method in my SQL Server queries/stored procedures.