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.

100 Like 47 Dislike
Previous php-forum Next php-forum
Other php-forum

limitations on array_unique()
Does any one know what/how imitations are applied to array_unique? I have an issue where no matter h

form problem
below in the form action, i've put "test.php?w=$sw&h=$sh" but when i input the for

convert PHP array to Javascript array
I have a page that gets a request sent from AJAX, and I am trying to convert a PHP array to a javasc

Custom CMS
This is a big custom CMS script I'd like to develop and would like some help atleast figuring out wh

Date Format
Hi there,

I have a date format like this right now:
Sat, 17 Oct 2009 17:04:00

I ne

Issues: PHP Forms -Clearing
I've tried looking online before actually asking for help, but I've been looking for about the past

Using two $_POST Function / Switch () statements, second does not work.
Hi all. I’m new to php and am having a problem getting $_POST Function / switch () to work. I

Creating XML with php
I need to creat an XML with php and have successfully produced a valid output.
The problem I hav

Curly Bracket Delimeters.
I'd always believed that the starting and ending delimeters in preg_ functions had to be the same ch

Internal Server Error issues
This has been bothering me for weeks and I've been trying to solve it without asking for help, but e

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