How To Display Array Elements With FOR Loop



How To Display Array Elements With FOR Loop
How To Display Array Elements With FOR Loop
Post Description:
Post Tags: how, to, display, array, elements, with, for, loop
This Post Has Been Viewed 201 Times Since Sat Feb 23, 2008 12:58 pm Posted By hostman with 1 replies
How To Display Array Elements With FOR Loop
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>";
	}
?>

Leave Your Comments     [ dejar commentarios ]
  * Name     [nombre]

  * eMail (will not be published)     [coreo electronico]

* Enter Your Reply or Comments:    [commentarios]


Add Picture To Comments         [incluir foto]
YES NO             upload
Receive Replies on my Comments (An email will be sent to you when someone replies to your comments)

     

Comments and replies About How To Display Array Elements With FOR Loop




:: 1 :: #42916 - Reply By hostman On Sun Feb 24, 2008 12:09 pm
take a look at this tutorial. it helped me alot

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