Skip to content

Instantly share code, notes, and snippets.

@mkolb
Last active January 3, 2023 14:53
Show Gist options
  • Select an option

  • Save mkolb/2379498 to your computer and use it in GitHub Desktop.

Select an option

Save mkolb/2379498 to your computer and use it in GitHub Desktop.

Revisions

  1. mkolb revised this gist Mar 22, 2017. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions var_dump-log.php
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,5 @@
    <?php
    ob_start();
    var_dump($this);
    $contents = ob_get_contents();
    ob_end_clean();
    error_log($contents);
    error_log(ob_get_clean());
    ?>
  2. Matt Kolb revised this gist May 21, 2012. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion var_dump-log.php
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    <?php
    ob_start();
    var_dump($this);
    $contents = ob_get_contents();
    ob_end_clean();
    error_log($contents);
    error_log($contents);
    ?>
  3. Matt Kolb renamed this gist May 21, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. Matt Kolb created this gist Apr 13, 2012.
    5 changes: 5 additions & 0 deletions var_dump-log
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    ob_start();
    var_dump($this);
    $contents = ob_get_contents();
    ob_end_clean();
    error_log($contents);