PHP Function List
var_dump() doesn't exist. Closest matches:
- var_dump
- variant_cmp
- variant_imp
- debug_zval_dump
- apc_bin_dump
- array_map
- array_sum
- var_export
- variant_add
- variant_and
- variant_div
- variant_pow
- variant_sub
- variant_mul
- variant_mod
- apc_bin_dumpfile
- ncurses_scr_dump
- counter_bump
- varnishadmin
- array_reduce
Site Search Results
-
require('Var_Dump.php'); // make sure the pear package path is set in php.ini Var_Dump:: displayInit (array('display_mode' => 'HTML4_Text'), array('mode' => 'normal', 'offset' => 4));?> then, instead of simply using var_dump($foo), use:
-
var_dump ($foo); // __set() will be called here $foo-> bar = 'something'; // Calls __set() // $foo now contains one member var_dump ($foo); // Won't call __set() because 'bar' is now declared $foo-> bar = 'other thing';
-
var_dump ($B); echo "\nObject \$A implicitly modified after operation:\n"; var_dump ($A); echo "\nObject \$C implicitly modified after operation:\n"; var_dump ($C); // Let's make $A refer to another instance
-
var_dump ($a > $b);?> mArIo@luigi ~ $: php test.php bool(true) here all characters match till it reaches position 9 (the "day") there, 6 has a bigger ord()inal value than 5 <?php $a = 'January 25th, 2008 00:23:38';
-
var_dump ($abc-> def-> ghi); // null / E_NOTICE: Trying to get property of non-object var_dump ($abc-> def-> ghi-> jkl); // null / E_NOTICE: Trying to get property of non-object var_dump ($def); // null / E_NOTICE ...
-
var_dump (property_exists ('myClass', 'mine')); //true var_dump (property_exists (new myClass, 'mine')); //true var_dump (property_exists ('myClass', 'xpto')); //false, isn't public myClass:: test1 (); echo("\n"); var_dump (property_exists_safe ('myClass', 'mine')); //true
-
Try this function instead of var_export($GLOBALS) or var_dump($GLOBALS) when all you want to know is the values of the variables you set on the current page. <?php function globalvars (){ $result =array();
-
var_dump (0 == (bool) 'all'); // false var_dump (0 == 'all'); // TRUE, take care var_dump (0 === 'all'); // false // To avoid this behavior, you need to cast your parameter as string like that : var_dump ((string) 0 == 'all'); // false
-
var_dump ($bar-> getSimple (); // output: object(stdClass)#3 (2) { ["priv:private"]=> int(1) ["pub"]=> int(2) } var_dump ($bar-> getSimple ()-> priv); // output: NULL, not a Fatal Error var_dump ($bar-> getSimple ()-> pub); // output: int(2)
-
I still find that printing out variable values at problem points in the code is one of the easiest ways for me to debug. If you're interested in knowing the full contents of an object/array/scalar, then use var_dump($var).

Other forms of search
To search the string "var_dump()" using other options, try searching:
- Only the documentation
- Only this mirror
- The entire php.net domain
- pear.php.net
- pecl.php.net
- The Bug DB
- php-general mailing list
- Internals mailing list
- Documentation mailing list
For a quick overview over all documented PHP functions, click here.
