July 11, 2017

Core PHP: Associative Arrays (4.3)

Associative Arrays

Use the named keys to access the array's members.
$people = array("David"=>"27", "Amy"=>"21", "John"=>"42");

echo $people['Amy']; // Outputs 21"

No comments:

Post a Comment