PHP - Variable assigment in function call
<p>I have the following code where I try to assign a value to a variable and then evaluate if it's empty:</p>

<pre><code>if(!empty($user = User::find($id))){
   // do some operations on the $user
}
</code></pre>

<p>But I'm getting an error... Does the PHP compiler allows this in any way? </p>

<p>PS. I'm using PHP 5.3</p>

<p>Thanks</p>
