//Replace digit of 100,000 with K,M or B
<?php
if(!empty($project['avg_price'])) {
$digit = $project['avg_price'];
if ($digit >= 1000000000) {
$digit = round($digit/ 1000000000, 1). 'B';
}
if ($digit >= 1000000) {
$digit = round($digit/ 1000000, 1).'M';
}
if ($digit >= 1000) {
$digit = round($digit/ 1000, 1). 'K';
}
$project['avg_price'] = $digit;
}
?>