Assign a variable with list()
<p>When we have to return only one value parsed by sscanf / fscanf, should we assign a list of one variable or use optional assigned values?</p>

<p>E.G.</p>

<pre><code>list($number) = fscanf($handle, "%d\n")
</code></pre>

<p>or</p>

<pre><code>fscanf($handle, "%d\n", $number)
</code></pre>

<p>Is there any difference in execution speed of these expressions?</p>
