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

Secure pages Sessions vs. Cookies & session_destroy() help
Im new here and new to PHP, I hope you can help me with some questions.

Im writing my web ap

i have no idea why this isn't working
Code: <?php
session_start();
include("connect.php");

error_reporting(E

The control with ID 'ace' requires a ScriptManager on the page
I'm trying to add a simple AlwaysVisibleControlExtender to my page, but it's not working. I get the

Collecting AOL Search Terms
I am attempting to collect AOL search terms. I know the code is correct (it works for google, bing,

EXplanation help
Hey all,

I am still fairly new to PHP programming and I am trying to put together a page wher

is_dir() problem
Hello,

I'm buidling a php scripts that dynamically get's subfolders from a specific folder.

Sorting JTable on more than just the values listed in the columns
I have a collection of objects that store (among other things) two integer values. I only want to di

Java API in PHP?
I have an application that we use internally here at the office.

The software company provide

mysqli_fetch_assoc returns multiple arrays, how to return a single array
Hello, I am using mysqli_fetch_assoc which is returning multiple rows, so it looks like:

Code

Is there a quick way to do this?
Hi all,

I need to create a mysql table from php that goes a little something like this

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