Tuesday, April 6, 2010

What is array in php

Question: What is array in php and how to create an array in php?

Answer: In php array is an ordered map. It contains values and keys.

To create an array we need to use array keyword

Example:

$a= array('php','interview','questions','answers');

This creates simple array.

No comments:

Post a Comment