Most voted "var-dump" questions
This function will show a structured representation over one or more expressions, including type and value. Arrays and objects are recursively explored with idented values in the structure shown.
Learn more…7 questions
Sort by count of
-
6
votes1
answer3967
viewsDifference between var_dump and print_r
I have a simple and objective question: Always in my research around, I notice that some programmers use var_dump() and others use print_r (like me). What’s the difference between print_r() and…
var-dumpasked 8 years ago Sr. André Baill 6,946 -
5
votes1
answer153
viewsWhy use __debugInfo()?
I saw that PHP 5.6 has now created the new magic method called __debugInfo. This method aims to return a array, which will be printed in the var_dump. That one array returned obviously must offer…
-
4
votes1
answer198
viewsHow to show all the contents of a variable using var_dump?
I’m thrashing an object (let’s say), but when I use var_dump, the entire content of this object does not appear. var_dump($obj[0]->link); Upshot: string…
-
2
votes2
answers1475
viewsStore var_dump in a variable
I need to show the array and store it in a variable, the functions I know that do that are var_dump and print_r, but they do not store in string, they already dao echo. What function to use?…
-
0
votes1
answer906
viewsMethod $_POST returning NULL
Good night. I’m having a problem with my $_POST method, because it only returns me NULL. I have tried from N forms, redesigned design, BD, refiz class by class, etc., but without success. Where am I…
-
0
votes0
answers197
viewsHow to take a specific value?
When giving VAR_DUMP in a variable, comes the result object(PagarMe\Sdk\Transaction\BoletoTransaction)#28 (33) { ["boletoUrl":protected]=> string(61)…
-
0
votes0
answers42
viewsXdebug.overload_var_dump (configuration removed in Xdebug 3) and now?
The configuration of Xdebug.overload_var_dump removed in the Xdebug 3, in the documentation appears Xdebug.overload_var_dump Has been Removed. PHP’s var_dump() is now Always overloaded through…