1. Home
  2. Computing & Technology
  3. PHP / MySQL

Array () PHP Function

By , About.com Guide

Definition: Returns an array of the parameters. The parameters can be given an index with the => operator.
Examples:
<?php
$months = array(1 => 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
print_r($months);
?>
Explore PHP / MySQL
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL
  4. PHP Functions
  5. PHP Array - Script Array - Very Large Array

©2009 About.com, a part of The New York Times Company.

All rights reserved.