Right number output PHP
<p>I want my number format like this:</p>

<pre><code>1000 = 1k

10500 = 10.5k

1843 = 1.8k

17434 = 17.4k 
</code></pre>

<p>But I have no clue how to do that. The language is PHP</p>

<p>Thanks for the help!</p>
