Update php.html.markdown

Changed var name to $associative
This commit is contained in:
Patrick Lee 2016-02-18 16:38:15 -05:00
parent a5ae0795ba
commit c50ff1ddc8

View File

@ -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'];