For Business
Login
Home
Assessments
Mytat Certificates
Community
Courses
Premium Courses
jobs
Practice
Upskilling
Projects
Help
Run »
"John", "age" => 30, "city" => "New York"); // Accessing elements by key echo $person["name"]; // Output: John // Iterating over the array foreach ($person as $key => $value) { echo "$key: $value "; } // Output: name: John age: 30 city: New York ?>