php remove extra spacesCristi DraghiciAugust 25, 2014Programming / Development Removing multiple spaces inside a string can be done in PHP using: preg_replace("/s+/", " ", $string); # php Previous Post WordPress – make all images inside a post links Next Post Set internal encoding to UTF-8 for php