Answers for "php string contains whitespace"

PHP
0

php string replace space

$journalName = preg_replace('/\s+/', '_', $journalName);
Posted by: Guest on February-05-2021
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 string contains whitespace"

Browse Popular Code Answers by Language