zscott Posted January 3, 2007 Share Posted January 3, 2007 Using scandir, following along the online docs, and I end up with something like.. Array( [0] => . [1] => .. [2] => bar.php [3] => foo.txt [4] => somedir) How could I output this array into some html, maybe a UL.. foreeach? Link to comment Share on other sites More sharing options...
aspnetguy Posted January 3, 2007 Share Posted January 3, 2007 for($i=0;$i<sizeof($arr);$i++){ echo $arr[$i] . "<br>";} or foreach($arr as $key){ echo $key . "<br>";} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now