Tutorials >> View >> 7
Yahoo chat: marklester_aover
Bookmark and Share

Simple PHP Functions that removes special character of a string.

This is the PHP functions that removes special character of a string. Assign a string value to parameter $string ad the function will return string value that don't have special character.

Learn the codes below:

function removeSpclChar( $string ){
    $regExp = "/\~|\!|\@|\#|\$|\%|\^|\&|\*|\(|\)|\+|\|";
    $regExp .= "|\\\|\{|\}|\{|\]|\'|\"|\:|\;|\,|\<|\>|\+|\/|\`|\?/";
    return preg_replace($regExp, NULL, $string);
}

Click image to download the Zip file:

# of Comments (0)

Add your comment here...

Please feel free to make a comment and suggestion on this tutorial. Your comment and suggestion will help improve the tutorial for the benefit of you and others. Thank you...

Name : *
Email Add : *
URL (include http://):
Messages : *
Security Code : *
(*) Must not leave blank.
captcha

Our Main Services

We develop and deliver the following services:

Latest News...

Search My Site

 This Site   Web

Google Ads

Google Ads

Powered By:

Advertise

Place your Custom Advertise here $29 for 1 month. Image dimension 276x180 pixels. Click the Paypal "Buy Now" button below.