This is a very simple code to remove non alphanumeric charecters from a variable using php.
THE CODE
< ?php
$str = "Here! are some numbers 1244 and some non alphanumeric charecters !£$%^&";
$new_string = preg_replace("/[^a-zA-Z0-9\s]/", "", $str);
echo $new_string;
?>
This was a very quick info i just need to update on my website thanks a lot….
Incoming search terms:
- php remove non alphanumeric (4)
- Alphanumeric characters (3)
- alphanumeric tutorials (3)
- php remove alphanumeric (3)
- js remove non alphanumeric (2)
- remove non alphanumeric characters php (2)
- javascript filter non alphanumeric letters (2)
- mysql remove non-numeric characters (2)
- php strip non numeric (2)
- filter non numeric javascript (2)
- store and retrieve pdf extension to database from xampp (2)
- remove non alpha from string jquery (2)
- perl remove non-alphanumeric (2)
- php strip non letters (2)
- php strip variable to alphanumeric (1)
- php strip out non alphanumeric (1)
- php strip non-numeric (1)
- php text field non-alphanumeric-characters (1)
- php to drop alpha characters in post (1)
- php strip non alpha numeric chracters filter (1)
- php parse alphanumeric chars (1)
- php remove alphanumeric characters (1)
- php remove alphanumeric letters (1)
- php remove non alphanumeric characters 2011 (1)
- php remove non letters (1)
- Php Remove Non-Alphanumeric Characters (1)
- Php Remove Non-Alphanumeric in php (1)
- php replace non numeric (1)
- php sql stripping url (1)
- php strip alpha characters (1)
- php non alphanumeric characters code (1)
- procedure to replace alphanumeric characters from a mysql database table (1)
- relace non alpha numeric and spaces javascript (1)
- search of text of character by using comma in php code (1)
- sql alphanumeric characters filter (1)
- stata drop non alpha numeric characters (1)
- stata remove all non-alphanumeric (1)
- strip alpha to numeric php (1)
- strip non alphanumerical from a variable php (1)
- take off non numeric characters stata (1)
You will also be interested in ,
- How to use Namespaces in php 5.3 ?
- Redirect webpage using php
- Total Number Of Rows In MYSQL
- Listing the comma seperated data or line using php
- Get DNS Record using PHP
- Database Connection And Pagination In PHP Using Symfony Framework
- Adding apache handlers in cpanel
- How to get the IP address of the visitor with PHP?
- Randomly read and display values of an xml file using php
- Display mysql table using for loop in php

