-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Updated the helper method dd() #860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks! Marking as tested working for Taylor to consider, +1 from me :) |
I wonder if it would be worth to also do a is_array check and use print_r in that case. |
Also if it's an integer we could draw ascii hearts to represent the number. <3 <3 <3 <3 One helper to rule them all! |
Check for the xdebug extension, when not present, hide the output and link to the installation page |
Hang on, mine is already formatted all sexy like. Am I missing something here? |
That's because you probably have xdebug installed =) btw, the dd method should use func_get_args too, i end up using die(var_dump($when, $i, $want, $to, $check, $more, $than, $one, $variable)); |
Ah that would explain the sexiness. Then yes, everyone must have xdebug. :P +1 for Koen's suggestion too, handy since at the moment I do something like this...
|
wouldn't |
Couldn't you put it all on the one line as well. Because I love saving space.
|
I am afraid it is not possible to pass func_get_args() in as an argument, it has to "live" in the function "dd" |
@vespakoen not that it matters any longer, but it does work as of PHP 5.3. 5.2: http://codepad.viper-7.com/JwFQVW Documentation: http://us3.php.net/manual/en/function.func-get-args.php#refsect1-function.func-get-args-notes Just a friendly heads-up :) |
Thanks for the heads-up, good to know, guess I should check the changelog more often =) |
Excellent change, but I just wanted to throw this out there: Isn't it pointless to include the |
BANG, AND ITS IN ( Emma doesn't like it when I use that at home. ) |
Updated the helper method dd()
After I install xdebug on my windows box, the output becomes sexy, all of the nasty curly braces are gone. |
Apply fixes from StyleCI
Apply fixes from StyleCI
currently dd() just dies a var_dump(), I wrapped it in pre tags, so it's more readable on screen