PHP 数组


数组能够在单个变量中存储多个值:

实例

<?php
$cars=array("Volvo","BMW","Toyota");
echo "I like " . $cars[0] . ", " . $cars[1] . " and " . $cars[2] . ".";
?>

该参考手册提供了每个函数的简要描述和应用实例!