Yes, I know that...
but what does:
return ($i==$j) ? "They are the same" : "They are not the same";
or
return anyFunc($i==$j, $bla);
more clever than anything ?
== just return a boolean based on a comparison that will lead to conditions...
If you have something clever to show, go ahead. If not, don't quote.
One can explain easier by telling Google is their friend. But what's the point of this community then?
And this is a newbie forum, I never went to a 101 programming class where the professor explains all the possibilities of the ==. I think my example is as concrete as it can get. The rest is all experience and research.