1. Computing & Technology

Discuss in my forum

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);
 ?> 

©2012 About.com. All rights reserved.

A part of The New York Times Company.