Blog Details

How to remove special character for any string



                                

$mobile = '(250) 9912-124-56.67';

$mobile = preg_replace('/[^a-zA-Z0-9]/', '', $mobile);

echo $mobile;


Categories

Core_PHP

Latest posts

13.05.14
Implementing CRUD Operations ΒΆ

<ul> <li>Now comes the fun part. We would like t

13.05.14
View

<ol> <li><a href="http://www.yiiframework.com/do

13.05.14
Creating Model

<ol> <li><a href="http://www.yiiframework.com/do

Get Free Quote