The first step in tidying up is to trim any excess whitespace from the string. Although
this is never compulsory, it can be useful if you are going to store the string in a file or
database, or if you’re going to compare it to other strings.
PHP provides three useful functions for this purpose.We’ll use the trim() function
to tidy up our input data as follows:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment