(PHP 4, PHP 5, PHP 7)
var_dump — ��ӡ�����������Ϣ
�˺�����ʾ����һ���������ʽ�Ľṹ��Ϣ���������ʽ��������ֵ�����齫�ݹ�չ��ֵ��ͨ��������ʾ��ṹ��
In PHP 5 all public, private and protected properties of objects will be returned in the output.
��ֱ�ӽ��������������һ������ʹ��������ƺ���������ǰ�����������Ȼ��(����)���浽һ�� string �С�
expression��Ҫ��ӡ�ı�����
û�з���ֵ��
Example #1 var_dump() ����
<?php
$a = array(1, 2, array("a", "b", "c"));
var_dump($a);
?>
�������̻������
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
array(3) {
[0]=>
string(1) "a"
[1]=>
string(1) "b"
[2]=>
string(1) "c"
}
}
<?php
$b = 3.1;
$c = true;
var_dump($b, $c);
?>
�������̻������
float(3.1) bool(true)