Debug php code on browser
In javascript, you can console.log(‘whatever”) in your browser for troubleshooting. However, in php code, a little bit trick is required to do so. Here are the steps:
function debug_to_console($data) {
$output = $data;
if (is_array($output))
...
victorleungtw.hashnode.dev1 min read