Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

special characters in php

function removeSpecialChar($string) 
		{
			$string = strtolower($string);
			$string = preg_replace('/[^da-z ]/i', '', $string);// Removes special chars.
			$string = str_replace(' ', '-', $string); // Replaces all spaces with underscore.
			return strtolower($string);
		}
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #special #characters #php
ADD COMMENT
Topic
Name
1+4 =