DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
php remove double spaces to single space
$string
=
"this is my string"
$string
=
preg_replace
(
'/s+/'
,
' '
,
$string
)
;
PREVIOUS
NEXT
Tagged:
#php
#remove
#double
#spaces
#single
#space
ADD COMMENT
Topic
COMMENT
Name
4+5 =
Submit