|
通过var_dump函数输出数组
<?php
$array = array("PHP典型模块","PHP从入门到精通","PHP网络编程标准教程");
var_dump($array);
$arrays = array('first'=>"PHP典型模块",'second'=>"PHP从入门到精通",'third'=>"PHP网络编程标准教程");
var_dump($arrays);
?>
执行结果:
array(3) { [0]=> string(15) "PHP典型模块" [1]=> string(21) "PHP从入门到精通" [2]=> string(27) "PHP网络编程标准教程" } array(3) { ["first"]=> string(15) "PHP典型模块" ["second"]=> string(21) "PHP从入门到精通" ["third"]=> string(27) "PHP网络编程标准教程" }
|
|