Loop through and print all the values of an indexed array in PHP
Description
The following code shows how to loop through and print all the values of an indexed array.
Example
/*from w ww . j a v a 2 s . com*/
<?php
$myValue=array("XML","CSS","HTML");
$arrlength=count($myValue);
for($x=0;$x<$arrlength;$x++){
echo $myValue[$x];
echo "<br>";
}
?>
The code above generates the following result.