I have this php function :
function soheiladder($old_h,$old_m,$new_m)
{
$old_total_m = ($old_h * 60 ) + $old_m ;
$new_total_m = $old_total_m + $new_m ;
$output_h = intval($new_total_m / 60 );
$output_m = ($new_total_m % 60);
$output =array();
$output[0] = $output_h; // saat
$output[1] = $output_m; // minute
return $output;
}
when I want to use it's output in this way :
echo soheiladder($pele_h ,$pele_m,$ajib) [0] ;
echo soheiladder($pele_h ,$pele_m,$ajib) [1] ;
It works well in wamp server but when I test it online php says :
Parse error: syntax error, unexpected '[' in ...
for each output ! what should I do ?