Merge pull request #1 from patleeman/patleeman-patch-php

[php/en] Update php.html.markdown
This commit is contained in:
Patrick Lee 2016-02-18 16:11:17 -05:00
commit e0f31275a1

View File

@ -146,6 +146,9 @@ echo $associative['One']; // prints 1
$array = ['One', 'Two', 'Three'];
echo $array[0]; // => "One"
// Add an element to an associative array
$array['Four'] = 4;
// Add an element to the end of an array
$array[] = 'Four';
// or