Using Associative Arrays in PHP


Use associative arrays to store values with keys for easy access.

Source Code

$user = ["name" => "John", "age" => 30];
echo $user["name"];
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments