I'm new to PHP my question is how do I create an array with PHP?
What are the uses of an array?
Appreciate the help.
<?php
$color = array("red", "blue", "yellow");
foreach($color as $key => $value) {
echo $key . " " . $value . "<br>";
}
?>
More info: http://www.phphelps.com/7_Creating_and_looping_array_in_PHP.shtml
311 views
Usually answered in minutes!
×