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

storing video files into mysql in php
hi

i have my video files in my folder ,
i have to store the path of the videos into db an

php slowing my site?
Hi all,

I think that one of the reasons that my site doesn't work fast is that the code is ve

tag inside php...
hi


Code: <?php
echo "<td width="$columnWidth%" align=&

Please help with code for SMTP authenticated PHP email form
Hello, I'm creating a PHP email form, and for this particular server, I have to use SMTP Authenticat

Help pulling in 'id' with "read more" link
I'm trying to create snippets of my articles in the cms I'm creating, and then have them redirect to

Multidimensional Array into an Html table, help!
Hello all, I am new to HTML/PHP so any help would be great.

I have a multidimensional array f

Help: problem with Headers to download PDF file
Hi,

I'm trying to implement a script where when a user clicks a link he gets a PDF file to op

RSS feed - FeedList for WordPress
Hi,

I'm trying to alter the FeedList plugin for WordPress so that I can click on the title of

Session is not saving
I am not trying to do anything too fancy, I am just trying to get some $_SESSION data to save and us

Onclick problem in Firefox
Hi,
I am using a . It doesn't seem to

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