Answers for "php keep only some character of a string"

PHP
2

php string only letters

$result = preg_replace("/[^a-zA-Z0-9]+/", "", $s);
Posted by: Guest on May-21-2020
1

print only some characters of a string in php

substr(string,start,length)
Posted by: Guest on July-11-2020

Code answers related to "php keep only some character of a string"

Browse Popular Code Answers by Language