Re: [PHP] validating textarea using php
- Date: Tue, 13 May 2008 19:02:02 +0300
- From: "Usamah al-Amin" <usamah1228@xxxxxxxxx>
- Subject: Re: [PHP] validating textarea using php
> if(chop($comments) == "") { ... } //hope that helps.
Well, chop() is an alias of rtrim(), so it won't work here for, say,
trimming control characters at the end of the string like line feeds.
trim() is actually the best bit here.
Regards,
Usamah
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Follow-Ups:
- Re: [PHP] validating textarea using php
- From: Robert Cummings
- Re: [PHP] validating textarea using php
- From: Dan Joseph
- Re: [PHP] validating textarea using php
- References:
- [PHP] validating textarea using php
- From: Sudhakar
- Re: [PHP] validating textarea using php
- From: Hiep Nguyen
- [PHP] validating textarea using php
- Prev by Date: Re: [PHP] Why doesn't working with array's ever stick in my thick head?
- Next by Date: Re: [PHP] validating textarea using php
- Previous by thread: Re: [PHP] validating textarea using php
- Next by thread: Re: [PHP] validating textarea using php
- Index(es):