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

php form help
Hey,

I use a control file to set my meta tags and titles

Here's an example
Code: &a

having a small php error tha deals with the 'foreach'
Last night i was working on a script for a cart and it seemed to working good, until this morning. F

SAP Management Console is blank
Dear All ,

I am facing problem in my des sever suddely in SAP Management Console is blank and

Object Interfaces
EDIT: Never mind, I just updated to php 5.

Hey all,

I'm currently experimenting with p

Function
How can I make this function that once you click the link in the code it takes you to a new page wit

Undefined variable when using $_SERVER['PHP_SELF']
Hi guyz, please suggest me something...
On first.php I have one input field NAME, and on posting

Changing files over
Just thought I'd start with the new forums looking really nice .

Ok basically I've made this

php global variable
how can we create global variable so we can use its value in any form.. Please give example to

modifying a property of an object from a different class
I have 2 classes:
- Math
- Distance

in my math class, I have this line:
$distance =

Login Script Issues
I am using a script I got from http://phpsense.com/php/php-login-script.html in order to allow peopl

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