Referencing the Compared Variable in PHP
<p>This feels like a really stupid question, but I've always wondered if I've been doing this wrong:</p>

<pre><code>if($payment-&gt;shipping_state OR $payment-&gt;shipping_province)
    {
        $request['SHIPTOSTATE'] = isset($payment-&gt;shipping_state) ? $payment-&gt;shipping_state : $payment-&gt;shipping_province;
    }
</code></pre>

<p>Is there a keyword/an easier way to set <code>$request['SHIPTOSTATE']</code>to the variable which exists, since I already confirmed one of the two do in fact exist?</p>

<p>Something like:</p>

<pre><code>if ($payment-&gt;shipping_state OR $payment-&gt;shipping_province)
{
  $var = $this;
}
</code></pre>
