PHP数组可以通过以下几种方式定义:
$fruits = array("apple", "banana", "orange");
$fruits = ["apple", "banana", "orange"];
$numbers = range(1, 10);
$person = array("name" => "John", "age" => 30);
$person = array("name" => "John", 1 => "age");
list($name, $age) = array("John", 30);