Re: String Issue

From: Date: Thu, 24 Jan 2008 07:30:35 +0000
Subject: Re: String Issue
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-267970@lists.php.net to get a copy of this message
Hi, Try this: $str = 'HTMLFiles/MenuDisplay.php?var=Thai%20Image&Item=1797&Action=add'; $str = preg_replace("/(\&Item.*)$/","<REPLACEMENT STRING>", $str); this should work. Cheers, V -----Original Message----- From: Johny Burns <contactus@delivery2you.com> To: php-general@lists.php.net Sent: Thu, 24 Jan 2008 11:00 am Subject: [PHP] String Issue I have the following string on the address line HTMLFiles/MenuDisplay.php?var=Thai%20Image&Item=1797&Action=add I am trying to delete or replace the '&Item=1797&Action=add' (it is at the end of the string) I am not familiar as much with those string functions, and if somebody can give me some suggestions. I will appreciated it. Thank you in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ________________________________________________________________________ You are invited to Get a Free AOL Email ID. - http://webmail.aol.in

« previous php.general (#267970) next »