diff options
author | Patrick Lee <me@patricklee.nyc> | 2016-02-18 16:38:15 -0500 |
---|---|---|
committer | Patrick Lee <me@patricklee.nyc> | 2016-02-18 16:38:15 -0500 |
commit | c50ff1ddc874ace092507982f881510b27a2e173 (patch) | |
tree | 706e8f9783063b57cad626902997741047fff028 /php.html.markdown | |
parent | a5ae0795ba9e947b6b766707a0b93e5032ba8615 (diff) |
Update php.html.markdown
Changed var name to $associative
Diffstat (limited to 'php.html.markdown')
-rw-r--r-- | php.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/php.html.markdown b/php.html.markdown index 4acdef98..6944390c 100644 --- a/php.html.markdown +++ b/php.html.markdown @@ -143,7 +143,7 @@ $associative = ['One' => 1, 'Two' => 2, 'Three' => 3]; echo $associative['One']; // prints 1 // Add an element to an associative array -$array['Four'] = 4; +$associative['Four'] = 4; // List literals implicitly assign integer keys $array = ['One', 'Two', 'Three']; |