Answers for "associative array to variables php"

PHP
1

php transform associative array to array

$array = array_values($array);
Posted by: Guest on June-14-2020
5

how to create an associative array in php

<?php
	$associativeArray = [
        "carOne" => "BMW",
        "carTwo" => "VW",
        "carThree" => "Mercedes"
    ];
    
    echo $associativeArray["carTwo"] . " Is a german brand";
?>
Posted by: Guest on February-18-2020

Code answers related to "associative array to variables php"

Browse Popular Code Answers by Language