If you're trying to just make the number readable in a sentance you could always use the English Ordinal Suffix. E.g. 2nd, 11th, 211th, etc..
Example Code:
PHP Code:
/**
* module: englishOrdinalSuffix
* summary: converts int to english ordinal suffix number string, e.g. 3rd, 11th, 3543rd
* params: int x
* returns: string
* author: phpsales @ dynamic drive forum
**/
function englishOrdinalSuffix($x){
$y = ($x%100>10 && $x%100<20 ? 0 : $x%10);
$eos = array("th","st","nd","rd","th","th","th","th","th","th");
return number_format($x).$eos[$y];
}
echo englishOrdinalSuffix(1); //1st
echo englishOrdinalSuffix(11); //11th
echo englishOrdinalSuffix(53); //53rd
echo englishOrdinalSuffix(1002); //1,002nd
echo englishOrdinalSuffix(30311); //30,311th
Bookmarks