note 16090 added to function.stristr
| From: | k100 at k100design dot com | Date: | Tue, 16 Oct 2001 08:49:21 +0000 |
| Subject: | note 16090 added to function.stristr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18973@lists.php.net to get a copy of this message | ||
i used this function to scan a directory searching for images:
$eleimg=opendir("../$dir");
while ($file=readdir($eleimg)) {
if (stristr($file,".jpg") || stristr($file,".gif")) {
echo "<option value='$file'>$file\n";
}
}
--
http://www.php.net/manual/en/function.stristr.php
http://master.php.net/manage/user-notes.php?action=edit+16090
http://master.php.net/manage/user-notes.php?action=delete+16090
http://master.php.net/manage/user-notes.php?action=reject+16090