Re: string function that adds before and after
| From: | Curt Zirzow | Date: | Sat, 26 Jun 2004 03:57:33 +0000 |
| Subject: | Re: string function that adds before and after | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-189100@lists.php.net to get a copy of this message | ||
* Thus wrote Richard Harb:
> -----Original Message-----
> From: Gabe
> Sent: Friday, June 25, 2004, 9:06:15 PM
> > Philip Olson wrote:
>
> <lots of> ...
>
> I'd say it will do the job just fine if case sensitivity is not an
> issue:
>
> $word = 'weather';
> $new = str_replace($word, "<strong>$word</strong>", $phrase);
>
> ... speaks for itself ;)
I'm thinking to myself at this moment...
<style>
&weather { font-weight: bold }
</style>
It simply just would make the world a whole lot nicer :)
Do note, this is not a valid css tag, just a simple dream of mine.
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!