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';
}
Answer
As NikiC notes, <> and != are the same and have the same precedence. My earlier answer was based on what appears to be a bug in the documentation which has now been corrected.
No comments:
Post a Comment