Damnit!
I think I need to go home, or even better, take a holiday for a fortnight.
Thanks dude.
- Original Message -
From: "Luke Welling" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 15, 2002 5:30 PM
Subject: Re: [PHP] Got anot
++;
}
}
echo "$i";
closedir($handle);
}
}
- Original Message -
From: "Liam MacKenzie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 15, 2002 3:38 PM
Subject: Re: [PHP] Got another ripper for you all ;-)
Nup, still doe
> trim($ulist[1]);
You mean:
$ulist[1] = trim($ulist[1]);
Trim() returns a modifies copy of the string. It does not alter the
original. A lot of the string functions work like that.
Luke Welling
--
PHP and MySQL Web Development
by Luke Welling and Laura Thomson
http://www.amazon.com/exec/obido
;
To: "Tom Rogers" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, August 15, 2002 3:32 PM
Subject: Re: [PHP] Got another ripper for you all ;-)
Oh
Whoops
Thanks Tom
- Original Message -----
From: "Tom Rogers" <[EMAIL PROTECTED]>
To:
Oh
Whoops
Thanks Tom
- Original Message -
From: "Tom Rogers" <[EMAIL PROTECTED]>
To: "Liam MacKenzie" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, August 15, 2002 3:34 PM
Subject: Re: [PHP] Got another ripper for you all ;
Hi,
Thursday, August 15, 2002, 3:20:47 PM, you wrote:
>snip
LM> Is there a way to get rid of any new lines in a string?
LM> Because this is making my directory listing go whacko.
LM> Cheers,
LM> Liam
trim($dir)
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
- Original Message -
From: "Justin French" <[EMAIL PROTECTED]>
To: "Liam MacKenzie" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, August 15, 2002 3:27 PM
Subject: Re: [PHP] Got another ripper for you all ;-)
what about
$dir = str_replac
ent: Thursday, August 15, 2002 3:27 PM
Subject: Re: [PHP] Got another ripper for you all ;-)
what about
$dir = str_replace('\n','',$dir);
???
The manual is full of all sorts of good stuff!
Justin
on 15/08/02 3:20 PM, Liam MacKenzie ([EMAIL PROTECTED]) wrote:
> Hey g
what about
$dir = str_replace('\n','',$dir);
???
The manual is full of all sorts of good stuff!
Justin
on 15/08/02 3:20 PM, Liam MacKenzie ([EMAIL PROTECTED]) wrote:
> Hey guys,
>
> yep, another one...
>
>
> I do this:
> echo "-".$dir."-";
>
> I get this:
>
> -/home/eXtremail/mbox/i-re
Hey guys,
yep, another one...
I do this:
echo "-".$dir."-";
I get this:
-/home/eXtremail/mbox/i-redlands.net/9/1/liam
-
Note the new line at the end.
Is there a way to get rid of any new lines in a string?
Because this is making my directory listing go whacko.
Cheers,
Liam
--
PHP Gen
10 matches
Mail list logo