Answers for "white space with special characters remove from string in php"

PHP
0

remove symbolsand spaces php

preg_replace('/[^A-Za-z0-9]/', "", $data)
Posted by: Guest on December-14-2020
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 "white space with special characters remove from string in php"

Browse Popular Code Answers by Language