1<?php
2 $associativeArray = [
3 "carOne" => "BMW",
4 "carTwo" => "VW",
5 "carThree" => "Mercedes"
6 ];
7
8 echo $associativeArray["carTwo"] . " Is a german brand";
9?>
1C:\wamp64\www\myNerdvtest\api\teachers\posts.php:146:
2array (size=5)
3 0 =>
4 array (size=4)
5 'id' => int 1
6 'age' => int 20
7 'class' => string 's4' (length=2)
8 'else' => string 'no more' (length=7)
9 1 =>
10 array (size=4)
11 'id' => int 2
12 'age' => int 23
13 'class' => string 's5' (length=2)
14 'else' => string 'no more' (length=7)
15 2 =>
16 array (size=4)
17 'id' => int 3
18 'age' => int 19
19 'class' => string 's3' (length=2)
20 'else' => string 'sturbon' (length=7)
21 3 =>
22 array (size=4)
23 'id' => int 4
24 'age' => int 27
25 'class' => string 's6' (length=2)
26 'else' => string 'aahhh' (length=5)
27 4 =>
28 array (size=4)
29 'id' => int 5
30 'age' => int 20
31 'class' => string 's6' (length=2)
32 'else' => string 'humble' (length=6)
33