In PHP Projects, may need to remove extra spaces whitespace from end of string. There is a string that ends with a single white space or multiple extra spaces. Then we can use PHP trim function to remove the white space at the end of the string. PHP trim() Function This function not only removes […]
Tag: PHP Trim function
PHP: Remove Extra Spaces around a string
In many times, you may see there are strings with extra spaces around it and you may want to remove those extra spaces. By using PHP function trim function, you can remove those extra spaces around the string. Example <?php echo $username; ?> Output: ” srikant […]