Answers for "create am array in php"

PHP
3

php array

<?php
$array = array("foo", "bar", "hello", "world");
var_dump($array);
?>
Posted by: Guest on June-17-2020
2

array in php

<?php

$cars = array("Maserati", "Porsche", "BMW");

echo "I like " . $cars[0] . ", " . $cars[1] . " and " . $cars[2] . ".";

?>
Posted by: Guest on May-23-2020

Browse Popular Code Answers by Language