Answers for "php array to associative"

PHP
0

php transform associative array to array

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

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 "php array to associative"

Browse Popular Code Answers by Language