Hi, say I have a string like so
Testing
How could I have it remove all spaces before the first letter, and all spaces after the last letter in the string.
Thanks!
Hi, say I have a string like so
Testing
How could I have it remove all spaces before the first letter, and all spaces after the last letter in the string.
Thanks!
Look here for all string functions in PHP.
http://php.net/manual/en/ref.strings.php
use trim(string)