Php Remove Enter From String June 16, 2022 by udhaya php remove enter from string $_result = trim(preg_replace('/\s+/', ' ', $original_text));