how to display number in a certain format in php
<p>I'd like to display a number, integer or float in a uniform way like this:</p>

<p>if it is integer, for example 10, it should be displayed as 10.00
if it is a float already, for example 10.1, it should be displayed as 10.10
and if the float look like this 10.116, just display the first two number after the dot
regardless the left digits following the third one.</p>
