note 21681 added to function.split

From: Date: Thu, 23 May 2002 03:25:35 +0000
Subject: note 21681 added to function.split
Groups: php.notes 
Request: Send a blank email to php-notes+get-30928@lists.php.net to get a copy of this message
If you wanted to read the files off the hard drive and print them to the browser formatted in HTML you could do something like this: $files = ls; // shell out and run the ls command (unix only) $array = split("\n", $files); $count = count($array); for ($i=0; $i<=$count; $i++) { echo "$array[$i]\n"; // add appropiate HTML tags here } -- http://www.php.net/manual/en/function.split.php http://master.php.net/manage/user-notes.php?action=edit+21681 http://master.php.net/manage/user-notes.php?action=delete+21681 http://master.php.net/manage/user-notes.php?action=reject+21681

« previous php.notes (#30928) next »