(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)