Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
php remove characters not numbers or letters
Milla
Programming language:
PHP
2021-03-21 09:01:01
0
Q:
php remove characters not numbers or letters
Amine Birouk
Code:
PHP
2021-06-27 23:16:41
$res = preg_replace("/[^a-zA-Z0-9\s]/", "", $string);
0
Tags
number
php
remove
character
letter
characters
Related
strip non numeric and period php
php open file capital letters or not
remove non-uppercase character php
php string only letters
php remove numbers from string
php remove everything after character
php remove prefix from string
php string cut first x characters
php pop off the first character of string
text box should accept only alphanumeric not special characters in php
php keep only digitts
php remove last 3 letters from string
replacing some digits of a number with asterisks php
php remove all whitespace from a string
remove first letter php
php keep only numbers in string
php remove after character
php regex non printable characters
check value contains numbers or letters php
New to Communities?
Join the community