Questions tagged [var-dump]

var_dump is a PHP function that dumps information about a variable.

var_dump is a PHP function that dumps information about a variable.

Examples

$a=array(1,2,3);
var_dump($a);
$b="hello so";
var_dump($b);

returns

array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) }
string(8) "hello so"

References

332 questions
-6
votes
1 answer

My var_dump stop working, how can i fix it?

When I use the function var_dump, in my file php, It doesn't print the array like before. I haven't touched the file php.ini in my wampserver, function getFolder_recursive(&$array,$dir){ if(is_dir($dir)){ $handle=opendir($dir); while…
Konu
  • 3
  • 6
-7
votes
2 answers

Get $_POST Array before sending the form

Situation: