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

retrieving images from mysql database using php
So I've been trying to figure out how to store images in a mysql database, and as far as i can tell

Beginner PHP code help
Hi I'm new to php but if someone could please read the question below and help it would be great.

Libraries in C++
Hi all,

I have two libraries. one is based targeted on linux platform and uses another li

Alternate messaging
I have 4 strings in MySQL db1

$string1 : Hello
$string2 : Hi
$string3 : Great
$strin

Help Import Animoto and Youtube
CAn someone help me urgently want to allow users on my website to import youtube/revver/dailymotion

Not Loading Function Into Div
I'm not sure whether to put this under the php forum or ajax forum but because I tink it's more of a

Polymorphism
Was wondering if someone could explain this a little better to me. I had always assumed that it had

progress bar...need expert opinion of experienced webmaster
Hey guys, quick question:

I want to display a progress bar when I upload files, but I am not

xml
<?php

echo "<h1>XML Articles</h1>";

$home

for some reason mysql query not working, not inserting, please check it out
This code is not inserting anything into my db, don't know why, the $_SESSION variable does contain

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