* void return type. * Void cannot be used as a parameter type. */ declare (strict_types=1); // non of return function nonOfReturn() : void { } var_dump(nonOfReturn()); // NULL // empty return function emptyReturn() : void { return; } var_dump(emptyReturn()); // NULL // return null function returnNull() : void { return null; } var_dump(returnNull()); // A void function must not return a value (did you mean "return;" instead of "return null;"?) // return false function returnFalse() : void { return false; } var_dump(returnFalse()); // A void function must not return a value
?> </td> <td class="text-center"><?php echo emptyReturn($value['start']); ?> </td> <td class="text-center"><?php echo emptyReturn($value['end']); ?> </td> <td class="text-center"><?php echo emptyReturn($value['performance'] * 100); ?> %</td> <td class="text-center"><?php echo emptyReturn($value['note']); ?> </td> </tr> <?php //Divide Date if ($key + 1 < count($arrayWork)) { if ($arrayWork[$key]['work_date'] != $arrayWork[$key + 1]['work_date']) { echo '<tr class="info"><td class="text-center" colspan="16"> </td></tr>'; } } else { echo ''; } /* echo '<pre>'; print_r($arrayWork[$key]); echo '</pre>';