Write a PHP script that removes the whitespaces from a string.
Sample string : 'The quick " " brown fox'
<?php $str1 = 'The quick " " brown fox'; echo preg_replace('/\s+/', '', $str1)."\n"; ?>
Sample Output:
Thequick""brownfox
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer