void var_dump ( mixed expression [, mixed expression [, ...]])
This function displays structural information about one or more expressions, including the expression's type and value. Arrays will expand values recursively, showing their structure through indentation.
*/
function a_test($str) //Custom function
{
echo "nhi: $str"; //Output parameters
var_dump(debug_backtrace()); //Output backtrace
}
a_test('friend'); //Call user-defined function
//Let’s look at another var_dump traversal object instance
class foo {
private $a;
public $b = 1;
public $c='bKjia.c0m';
private $d;
static $e;
public function test() {
var_dump(get_object_vars($this));
}
}
$test = new foo;
var_dump(get_object_vars($test));
$test->test();
//Note: In order to prevent the program from outputting the results directly to the browser, you can use the output control function to capture the output of this function and save them to a variable of type string, for example.