How To Display Array Elements With FOR Loop

RegisterLogin
How To Display Array Elements With FOR Loop
Post Description: How To Display Array Elements With FOR Loop
Tags: How, To, Display, Array, Elements, With, FOR, Loop
This Post Was Posted On Feb 29, 2008 By web hosting #496
to show you how you can display or show the values of an array you can use this small script i created

<?

## THIS TUTORIAL CREATED BY WWW.WEBUNE.COM LICENSED THROUGH WWW.WALLPAPERAMA.COM
$dir_fs_www_root = getenv('SCRIPT_FILENAME');
$words= explode("/", $dir_fs_www_root );
for($i =0; $i < count($words); $i++) {
echo "<strong>$words[$i]</strong> = ";
echo $words[$i]."<br>";
}
?>
hostman
#624 1
take a look at this tutorial. it helped me alot

how-to-index-arrays-and-show-all-the-elements-and-values-of-array

Feb 24, 2008 Reply Report abuse
©2011 Webune Forums - Mon Dec 19, 2011 1:24 pm
Powered by: Webune Forums V3