summaryrefslogtreecommitdiffhomepage
path: root/php.html.markdown
diff options
context:
space:
mode:
authorPatrick Lee <me@patricklee.nyc>2016-02-18 16:38:15 -0500
committerPatrick Lee <me@patricklee.nyc>2016-02-18 16:38:15 -0500
commitc50ff1ddc874ace092507982f881510b27a2e173 (patch)
tree706e8f9783063b57cad626902997741047fff028 /php.html.markdown
parenta5ae0795ba9e947b6b766707a0b93e5032ba8615 (diff)
Update php.html.markdown
Changed var name to $associative
Diffstat (limited to 'php.html.markdown')
-rw-r--r--php.html.markdown2
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'];