PHP number format error
<p>I wanted to shorten my numbers by a few , so maximum numbers will be 5.</p>

<p>for example instead of</p>

<p>2.2333333333</p>

<p>it will show</p>

<p>2.23333</p>

<p>I used this code:</p>

<pre><code>    echo "&lt;tr&gt;&lt;td&gt;".$results['playerName']."&lt;/td&gt;&lt;td&gt;".$results['Runecraftlvl']."&lt;/td&gt;&lt;td&gt;".$results['Runecraftxp']."&lt;/td&gt;&lt;td&gt;".$results['kills']."&lt;/td&gt;&lt;td&gt;".$results['deaths']."&lt;/td&gt;&lt;td&gt;".$results['targkills']."&lt;/td&gt;&lt;td&gt;". $number_format("$Kdr",5)."&lt;/td&gt;&lt;/tr&gt;";
</code></pre>

<p>On the last variable</p>

<pre><code>&lt;td&gt;". $number_format("$Kdr",5)."&lt;/td&gt;
</code></pre>

<p>Works fine, but if user got 0 Kdr or something, it will print this error:</p>

<p>Fatal error: Function name must be a string</p>

<p>Why does it do that? How can it be fixed?
Thanks.</p>
