Re: remove words with a delimiter
| From: | Chris Lee | Date: | Fri, 01 Dec 2000 07:35:17 +0000 |
| Subject: | Re: remove words with a delimiter | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28305@lists.php.net to get a copy of this message | ||
you'll want ereg_replace() or eregi_replace()
<?
$site = "www.myserver.com/this/that.htm";
$site = eregi_replace(".htm", '', $site);
echo "$site<br>\n";
?>
more info at
http://www.php.net/manual/function.eregi-replace.php
Chris Lee
Mediawaveonline.com
In article
<309828428FB7D411A53C00508BB18D261CC33E@triton.triton-network.com>,
pbenoit@triton-network.com wrote:
> in my URL I want to remove the actual file name
>
> like www.myserver.com/this/that.htm
>
> to www.myserver.com/this/ or www.myserver.com/this
>
> how can I do that?
>
> thanks, Pete
>
>