mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Update php.html.markdown
Changed var name to $associative
This commit is contained in:
parent
a5ae0795ba
commit
c50ff1ddc8
@ -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'];
|
||||
|
Loading…
Reference in New Issue
Block a user