1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-18 04:21:25 +02:00

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

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