SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
$toemail = explode(',', str_replace(' ', '', $request->toemail));