Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
php string only letters
FMB
Programming language:
PHP
2021-07-01 20:13:37
0
Q:
php string only letters
Rob
Code:
PHP
2021-06-11 16:29:30
$result = preg_replace("/[^a-zA-Z0-9]+/", "", $s);
1
Tags
string
php
letter
Related
php keep only digitts
string first letter uppercase php
print only some characters of a string in php
php regex non printable characters
php open file capital letters or not
php foreach string char
check value contains numbers or letters php
php remove characters not numbers or letters
php keep only numbers in string
php generate random string of characters
php capitalize first letter
php code to convert to small letter
first character uppercase php
php uppercase first letter
php check if string contains a char
first letter capital of every word in php
php count words in a string
php capital string
New to Communities?
Join the community