Sunday, March 9, 2014

Indexed Array in PHP.

Indexed arrays is arrays where each element is referenced by a numeric index, usually starting from zero. For example, the first element has an index of 0, the second has an index of 1, and so on.

Example:


<?PHP
$a = array(" Java <br/> "," Android <br/>"," Php <br/>"," Sql");
$size = count($a);
print_r($a);
?>

Output:


No comments:

Post a Comment