Skip to content

Instantly share code, notes, and snippets.

@acjbizar
Last active January 23, 2020 10:00
Show Gist options
  • Select an option

  • Save acjbizar/de5d5eab0bda8862e2ac3148f123bd6e to your computer and use it in GitHub Desktop.

Select an option

Save acjbizar/de5d5eab0bda8862e2ac3148f123bd6e to your computer and use it in GitHub Desktop.
Een jw’tje.
<?php
if(!function_exists('jw')) {
function jw() {
ob_start();
$expression = func_get_args();
call_user_func_array('var_dump', $expression);
echo '<pre><code class="language-php">' . htmlentities(ob_get_clean()) . '</code></pre>';
}
}
// Test.
jw(true, 1337, 'hoi', ['een ding', 'nog een ding'], (object) ['oop' => '<de-shit>']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment