Questions tagged as 'var-dump'

1
answer

Difference between var_dump and print_r

I have a simple and objective question: Always in my searches there, I notice that some programmers use var_dump() and others use print_r (like me).    What is the difference between print_r() and var_dump() , both...
asked by 21.12.2016 / 12:37
1
answer

Why use __debugInfo ()?

I saw PHP 5.6 now create the new magic method, called __debugInfo . This method is intended to return a array , so it will be printed on the var_dump call. This array returned obviously should provide debugging infor...
asked by 17.11.2016 / 14:51
2
answers

Store var_dump in a variable

I need to show the array and store it in a variable, the functions I know that do this are var_dump and print_r , but they do not store in string , they already give echo . What function to use?     
asked by 25.12.2014 / 17:02
1
answer

Method $ _POST returning NULL

Good evening. I'm having a problem with my $ _POST method, because it just returns me NULL. I've already tried N forms, refiz design, BD, refiz class by class, etc., but to no avail. Where am I wrong? Here's a part of the code: <?php...
asked by 29.07.2016 / 04:00
0
answers

How do I get a specific value?

When giving VAR_DUMP in a variable, comes the result object(PagarMe\Sdk\Transaction\BoletoTransaction)#28 (33) { ["boletoUrl":protected]=> string(61) "https://api.pagar.me/1/boletos/live_cjcj73jk20fqvon3ceav0x7g1" ["boletoBarcode":pro...
asked by 17.01.2018 / 16:55