Associative Arrays in php
Associative arrays use named keys (strings) that you assign to them. They are like dictionaries or hashmaps in other languages.
Video Explanation

Creating an Associative Array
<?php
$person = [
"name" => "Alice",
"age" => 30,
"city" => "Delhi"
];
echo $person["name"]; // Alice
echo $person["age"]; // 30
?>
Or using the array() constructor:
<?php
$car = array(
"brand" => "Toyota",
"model" => "Camry",
"year" => 2022
);
?>
Accessing Values
<?php
$user = ["username" => "john_doe", "email" => "john@example.com"];
echo $user["username"]; // john_doe
echo $user["email"]; // john@example.com
?>