closedir($handle);
$emailes = implode(',', $emailes);
- Kevin
- Original Message -
From: "Richard Kurth" <[EMAIL PROTECTED]>
To: "php-general" <[EMAIL PROTECTED]>
Sent: Wednesday, March 05, 2003 3:36 PM
Subject: [PHP] adding a comma between a list of f
Hello Jonathan,
Thanks I know it was something simple like that.
Wednesday, March 5, 2003, 2:42:41 PM, you wrote:
JP> Richard,
JP> $handle = opendir($emaildir);
JP> $emailes = "";
JP> while (false !== ($file = readdir($handle))) {
JP> if ($file != "." && $file != "..") {
JP>
Richard,
$handle = opendir($emaildir);
$emailes = "";
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
if ($emailes != "") {
$emailes .=substr($file,0,strpos($file,'.'));
} else
The scrip below will list all the files in a directory and also strip off every
thing in the file name after a .
so if I have files named 1.txt 2.txt 324.txt 5.txt it gives me a list that
looks like this 123245. I need to add a , in between each of these file
names so they will look
4 matches
Mail list logo