Tools, FAQ, Tutorials:
Removing Leading and Trailing Spaces in PHP
How To Remove Leading and Trailing Spaces from User Input Values?
✍: FYIcenter.com
If you are taking input values from users with a Web form, users may enter extra spaces at the beginning and/or the end of the input values. You should always use the trim() function to remove those extra spaces as shown in this PHP script:
<?php $name = $_REQUEST("name"); $name = trim($name); # $name is ready to be used... ?>
⇐ Remove Trailing New Line Character in PHP
2016-10-13, 1348👍, 0💬
Popular Posts:
How to use the API operation 2017 version setting "Rewrite URL template"? The API operation setting ...
How to use the JSON to XML Conversion Tool at utilities-online.info? If you want to try the JSON to ...
Where to find tutorials on Using Azure API Management Developer Portal? Here is a list of tutorials ...
How to access Query String parameters from "context.Request.Url.Que ry"object in Azure API Policy? Q...
How to add request URL Template Parameters to my Azure API operation 2017 version to make it more us...