php remove extra spacesCristi DraghiciAugust 25, 2014Discover programming Removing multiple spaces inside a string can be done in PHP using: preg_replace("/s+/", " ", $string); php Facebook Twitter Pinterest LinkedIn Previous Post Wordpress - make all images inside a post links Next Post Set internal encoding to UTF-8 for php