jCay.org

last scripts

popular scripts

top rated

search
 
search:

Advertisment

Remove whitespace from a text string

DeEnFrSp
Hits: 763

Remove whitespace from a text string

Rating 3.5 3.5
If you use a form on your site then you'll know that user input can often have white space before or after the text as the person filling in the form field sometimes accidentally adds spaces. This handy function will remove the whitespace from the beginning or end of the string.


Platform(s): n/a
Date: Mar, 10 2004
Author: http://totallyphp.co.uk/code/remove_whitespace_from_a_text_string_using_the_php_trim_function.htm

Ratings

Number of Ratings: 100 Votes
5     
26%
4
74%
3
0%
2
0%
1
0%
Visitor Voting Booth: Rate It!