Web Hosting Talk







View Full Version : Strip out symbol from title.


e-zone
02-21-2008, 11:11 AM
Hello, need help again :)

I need to strip out this symbol * from my titles.

This is how i call the titles = $title

Any help is appreciated :agree:

Regards S.A

dollar
02-21-2008, 11:30 AM
Not sure I quite understand what you are trying to do. If you just want to get rid of *'s in a string then something like:

<?php $title = str_replace("*","",$title); ?>

should do the trick.

e-zone
02-21-2008, 12:04 PM
Just wanted to remove the * from my the titles.

It did the trick, thanks for your help :agree:

Kind Regards S.A

boniggy
02-21-2008, 10:46 PM
Well i know in VB its called Regular Expression. I dont know the code for it in PHP tho. Hopefully this might point you in the right direction.

Course you could use the replace too.. that works :)