Emad Mohamed Hossam ElDin - 2016-10-03 16:02:24 -
In reply to message 1 from md
I have managed to fix this code,
replace the for loop in Line 31 with
for($i=0; $i<count($array_number); $i++){
$place=count($array_number) - $i;
$corrected_num = ltrim($array_number[$i], "0000");
$corrected_num = ltrim($array_number[$i], "000");
$corrected_num = ltrim($array_number[$i], "00");
$corrected_num = ltrim($array_number[$i], "0");
$return .= $this->convert($corrected_num, $place);
if(isset($array_number[($i + 1)]) && $array_number[($i + 1)]>0) $return .= ' و';
}