1 |
<?php |
2 |
|
3 |
# comment |
4 |
// another comment |
5 |
|
6 |
$number1=123; |
7 |
$number2 = 123.45; |
8 |
|
9 |
$string1 = 'McHenry, IL'; |
10 |
$string2 = "Trenton, NJ"; |
11 |
|
12 |
$array1 = Array( 123 ); |
13 |
$array2 = Array( 123, 456, 789 ); |
14 |
$array3 = Array( "abc" ); |
15 |
$array4 = Array( "abc", "def", "ghi" ); |
16 |
|
17 |
$hash1 = Array( 'a' => 1 ); |
18 |
$hash2 = Array( 'a' => 1, 'b' => 2, 'c' => 3 ); |
19 |
$hash3 = Array( 1 => 'a', 'foo' => "bar", 123.45 => 'moog' ); |
20 |
|
21 |
$hash4 = Array( |
22 |
'abe' => 'Abraham Lincoln', |
23 |
'larry' => 'Larry Wall' |
24 |
); |
25 |
|
26 |
define( "TEST_CONSTANT", 'NJ and you, perfect together' ); |
27 |
define( "ANOTHER_CONSTANT", "NJ, the garden state" ); |
28 |
define( "YETANOTHER_CONSTANT", 80 ); |
29 |
|
30 |
$hash5 = Array( 'constant' => TEST_CONSTANT ); |
31 |
$array5 = Array( 'test', ANOTHER_CONSTANT ); |
32 |
|
33 |
$hash6 = Array( 'foo' => 'bar', ); |
34 |
$array6 = Array( 'foo', ); |
35 |
|
36 |
?> |