Try,
list($test)=explode(' ',$address);
HTH
Danny
- Original Message -
From: "webmaster" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 02, 2002 5:35 PM
Subject: [PHP] string questions
> I know there has to be an easy way to do this, but I just can't find the
> an
Use function explode, preg_split, split to split the text string.
$pieces = explode(" ", $address);
echo $pieces[0]; // will output 4455
- Original Message -
From: Jason Wong
Sent: Saturday, August 03, 2002 1:12 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] string questions
O
On Saturday 03 August 2002 00:35, webmaster wrote:
> I know there has to be an easy way to do this, but I just can't find the
> answer. I need to strip out the first part of a text string. I've
> figured out out to strip out the last part of a string using the
> following:
>
> $address = (4455 N
3 matches
Mail list logo