danine1

debug to console php

Feb 5th, 2020
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1.     function debug_to_console($data) {
  2.                 $output = $data;
  3.                 if (is_array($output))
  4.                     $output = implode(',', $output);
  5.            
  6.                 echo "<script>console.log('Debug Objects: " . $output . "' );</script>";
  7.             }
  8.            
  9.             //print_r($pickup_time);
  10.             debug_to_console($pickup_time);
Add Comment
Please, Sign In to add comment