Merge pull request #2144 from patleeman/master

[php/en] Update php.html.markdown
This commit is contained in:
Adam Bard 2016-02-18 14:40:56 -08:00
commit a2848909ba

View File

@ -142,6 +142,9 @@ $associative = ['One' => 1, 'Two' => 2, 'Three' => 3];
echo $associative['One']; // prints 1
// Add an element to an associative array
$associative['Four'] = 4;
// List literals implicitly assign integer keys
$array = ['One', 'Two', 'Three'];
echo $array[0]; // => "One"