var_dump (PHP 3>= 3.0.5, PHP 4 )var_dump -- Dumps information about a variable Descriptionvoid var_dump (mixed expression) This function returns structured information about an expression that includes its type and value. Arrays are explored recursively with values indented to show structure. Compare var_dump() to print_r(). <pre> <?php $a = array (1, 2, array ("a", "b", "c")); var_dump ($a); ?> </pre>
(PHP 3>= 3.0.5, PHP 4 )var_dump -- Dumps information about a variable
Descriptionvoid var_dump (mixed expression)
This function returns structured information about an expression that includes its type and value. Arrays are explored recursively with values indented to show structure. Compare var_dump() to print_r(). <pre>
<?php
$a = array (1, 2, array ("a", "b", "c"));
var_dump ($a);
?>
</pre>
试试下面的代码:
<?
$a=22;
$b='test';
$c=var_dump($a,$b);
echo $c;
?>