Skip to content

Instantly share code, notes, and snippets.

@mbernson
Created June 21, 2012 07:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbernson/2964412 to your computer and use it in GitHub Desktop.
Save mbernson/2964412 to your computer and use it in GitHub Desktop.
car_dump
<?php
function car_dump() {
return call_user_func_array('var_dump', func_get_args());
}
$foo = array(
'bar',
'baz',
'quux'
);
car_dump($foo);
@emrysal
Copy link

emrysal commented Jun 21, 2012

Definitely the best aliasing function there ever was and ever will be. :')

@codecat
Copy link

codecat commented Jun 21, 2012

TIL about func_get_args. This will come in handy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment