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, ∼3668🔥, 0💬
Popular Posts:
How to create a "Sign-up or Sign-in" user flow policy in my Azure AD B2C directory? If you want to b...
How to include additional claims in Azure AD v2.0 id_tokens? If you want to include additional claim...
What are the differences of Differences of evaluateTransaction() and submitTransaction() of the fabr...
Where to find tutorials on Using Azure API Management Publisher Dashboard? Here is a list of tutoria...
What Is Azure API Management Service? Azure API Management as a turnkey solution for publishing APIs...