Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php replace multiple spaces end chrters to one

$string = preg_replace('/[s$@_*]+/', '_', $string);
 
PREVIOUS NEXT
Tagged: #php #replace #multiple #spaces #chrters
ADD COMMENT
Topic
Name
5+7 =