thanks!

--- In [email protected], "Muthukumar Selvarasu"
<[EMAIL PROTECTED]> wrote:
>
> Hi
> 
>  
> 
> use slash when you want to replace the special chars.
> 
>  
> 
> $description_brief = ereg_replace ('\*' , "&bull; " , 
> $description_brief) ;
> 
> 
> 
>  
> 
> Thanks,
> 
> Muthukumar Selvarasu,
> 
> Project Manager (Web Development),
> 
> Webmasters Ltd.
> 
>   _____  
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf
> Of David
> Sent: Wednesday, December 19, 2007 7:56 AM
> To: [email protected]
> Subject: [php-list] problem with ereg_replace
> 
>  
> 
> Hi
> 
> I am trying to replace the * char in a string to &bull;
> I have tried using ereg_replace and str_replace with 
> 
> $description_brief = ereg_replace ('*' , "&bull; " , 
> $description_brief) ;
> 
> which gives me an error: Warning: ereg_replace()
> [function.ereg-replace]: REG_BADRPT 
> 
> and when I try str_replace nothing happens. Any suggestions?
> 
> Thanks
> 
> David
> 
>  
> 
> 
> 
> [Non-text portions of this message have been removed]
>


Reply via email to