I solve problems on the compilation of functions for beginners, which are checked on the expected input data with the expected results. In the expected result, the function should return an array of integers in the form [0, 32, 18] , and I can only do [0,32,18] . Here is the full function:
function race($v1, $v2, $g) { if ($v1 >= $v2) { return null; } for ($i = 0; $i >= 0; $i++) { $tort1 = $v1 / 3600 * $i + $g; $tort2 = $v2 / 3600 * $i; if ($tort1 <= $tort2) { break; } } $time = $i - 1; $hours = floor($time / 3600); if ($hours < 1) { $minutes = floor($time / 60); } else { $minutes = floor(($time - $hours * 3600) / 60); } $seconds = $time - $hours * 3600 - $minutes * 60; $result = array($hours, $minutes, $seconds); $b = [$hours, $minutes, $seconds]; return $b; } Tell me, please, how to return it with spaces after a comma, taking into account that the result is an integer data array?