title: PHP's <> operator
body: <p>What does the <code>&lt;&gt;</code> operator mean exactly?</p>
  <p>Is it the same as <code>!=</code> (not equal)?</p>
  <h3>Sample code</h3>
  <pre><code>$foo = 'text';
  
  if ($foo &lt;&gt; 'photo') {
      echo 'foo';
  }
  else {
      echo 'bar';
  }
  </code></pre>