Test if two variables equal one variable in PHP if statement
<p><strong>Instead of writing out</strong></p>

<pre><code>if ($var1 = $something &amp;&amp; $var2 == $something)
    echo 'this';
</code></pre>

<p><strong>is it possible to write something similar to this instead</strong></p>

<pre><code>if ($var1 &amp;&amp; $var2 == $something)
    echo 'this';
</code></pre>
