Using The Array() Function

<?phpphp    /* Arrays $foo and $bar are equivalent arrays */
    $foo = array('a' => 1, 'b' => 2, 'c' => 3);
    $bar['a'] = 1;
    $bar['b'] = 2;
    $bar['c'] = 3;
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.