Posted By

naehrstoff on 11/10/09


Tagged

debug


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

vali29
ginoplusio
Wiederkehr


Debug PHP


 / Published in: PHP
 

Stop a script in the middle and print the variables to the browser.

  1. <?php
  2. // ... code ...
  3. header("Content-Type: text/plain");
  4. // Or alternatively:
  5. // print print_r(array_keys(get_defined_vars()), 1);

Report this snippet  

You need to login to post a comment.