SyntaxFix
Write A Post
Hire A Developer
Questions
$input = "Test me more"; echo preg_replace("/\s.*$/","",$input); // "Test"