Skip to content

How to create associative array in PHP?

	$associativeArray = [
        "carOne" => "BMW",
        "carTwo" => "VW",
        "carThree" => "Mercedes"
    echo $associativeArray["carTwo"] . " Is a german brand";
See also  Python code snippet - How to get files list from active directory from where the script is running?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.