Answers for "php remove script whitespaces"

PHP
1

remove whitespace from string php

$str = "\n\n\nHello World!\n\n\n";
echo "With trim: " . trim($str);
Posted by: Guest on July-10-2020

Code answers related to "php remove script whitespaces"

Browse Popular Code Answers by Language