File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed
src/Standards/Generic/Docs/Arrays Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ <documentation title =" Short Array Syntax" >
2
+ <standard >
3
+ <![CDATA[
4
+ Short array syntax must be used to define arrays.
5
+ ]]>
6
+ </standard >
7
+ <code_comparison >
8
+ <code title =" Valid: Short form of array." >
9
+ <![CDATA[
10
+ $arr = <em>[</em>
11
+ 'foo' => 'bar',
12
+ <em>]</em>;
13
+ ]]>
14
+ </code >
15
+ <code title =" Invalid: Long form of array." >
16
+ <![CDATA[
17
+ $arr = <em>array(</em>
18
+ 'foo' => 'bar',
19
+ <em>)</em>;
20
+ ]]>
21
+ </code >
22
+ </code_comparison >
23
+ </documentation >
Original file line number Diff line number Diff line change
1
+ <documentation title =" Long Array Syntax" >
2
+ <standard >
3
+ <![CDATA[
4
+ Long array syntax must be used to define arrays.
5
+ ]]>
6
+ </standard >
7
+ <code_comparison >
8
+ <code title =" Valid: Long form of array." >
9
+ <![CDATA[
10
+ $arr = <em>array(</em>
11
+ 'foo' => 'bar',
12
+ <em>)</em>;
13
+ ]]>
14
+ </code >
15
+ <code title =" Invalid: Short form of array." >
16
+ <![CDATA[
17
+ $arr = <em>[</em>
18
+ 'foo' => 'bar',
19
+ <em>]</em>;
20
+ ]]>
21
+ </code >
22
+ </code_comparison >
23
+ </documentation >
You can’t perform that action at this time.
0 commit comments