Created
June 21, 2012 07:37
-
-
Save mbernson/2964412 to your computer and use it in GitHub Desktop.
car_dump
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function car_dump() { | |
return call_user_func_array('var_dump', func_get_args()); | |
} | |
$foo = array( | |
'bar', | |
'baz', | |
'quux' | |
); | |
car_dump($foo); |
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
Definitely the best aliasing function there ever was and ever will be. :')