Skip to content

Commit 55a1aa6

Browse files
authored
Update Web基础-PHP基础.md
1 parent 7bafe64 commit 55a1aa6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

web基础/Web基础-PHP基础.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,15 @@ $a = 1e3; // 科学计算法 (等于十进制 1000)
114114

115115
```
116116
<?php
117-
$array = array(
117+
$array1=array("Volvo","BMW","SAAB");
118+
119+
$array2 = array(
118120
"foo" => "bar",
119121
"bar" => "foo",
120122
);
121123
122124
// 自 PHP 5.4 起
123-
$array = [
125+
$array3 = [
124126
"foo" => "bar",
125127
"bar" => "foo",
126128
];

0 commit comments

Comments
 (0)