php create associative array from array code example
Example 1: php transform associative array to array
$array = array_values($array);
Example 2: how to create an associative array in php
<?php
$associativeArray = [
"carOne" => "BMW",
"carTwo" => "VW",
"carThree" => "Mercedes"
];
echo $associativeArray["carTwo"] . " Is a german brand";
?>