实例首页
自学教程
IT工具箱
源代码
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>PHP 多维数组 实例 - 自学教程(runoops.com)</title> </head> <body> <?php $sites = array( "runoops" => array( "Runoops教程", "http://www.runoops.com" ), "google" => array( "Google 搜索", "http://www.google.com" ), "taobao" => array( "淘宝", "http://www.taobao.com" ) ); print("<pre>"); // 格式化输出数组 print_r($sites); print("</pre>"); ?> </body> </html>
运行结果: