[Solved] Using while loop in array November 29, 2022 by Kirat Just do this: $total_diff[] = number_format($diff, 0); 3 solved Using while loop in array