ereg_replace()


Posted on 16th Feb 2014 07:03 pm by admin

Basically what i need to do is

$title = "This Suck's"

$striped = ereg_replace("[^A-Za-z0-9]", " ", $title );


However, I only want it to strip the " ' " (Apostrophe) not all the characters. just Apostraphe's.. Can someone help please.

No comments posted yet

Your Answer:

Login to answer
100 Like 47 Dislike
Previous forums Next forums
Other forums

$variable = $variable
Hello

Sorry if this is a really simple question but I have run out of ideas. Is there a reall

validating url
im trying to validate url's sent to me by a form
the url's im collecting are for placing banners

Reg Ex
Im trying to search for the string: srv_9 (Dead ???)

I thought to use preg_match, however I d

gmdate() - want 1 hr before time
Hi,
I am using php gmdate().
Now I am entering all dates in my dbase using gmdate("Y-m-d

Get value from Select menu
Hi!

Have tried to find the solution on the web. Don't know if there is an easy one. A descrip

Problem with passing variables
I'm not really a php programmer so I'm really struggling with this issue.

I have a banner s

Help with captcha script needed
Hello,

I am working on a script where reCAPTCHA or a similar form of CAPTCHA will be used, f

problem with php server update from mid 2009
Hi,

I have this navigation menu on 2 websites which used to work just fine. After a recent up

Ajax Issues - Update Panel / Timer. Intellisense doesn't know about them
Type 'System.Web.UI.ScriptManager' does not have a public property named 'UpdatePanel'. That is wha

Needing Youtube thumb nail fix.
I have a script on a site that pulls in you-tube videos,
The problem is, that the thumb nails for

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash