Re: [PHP] validating textarea using php

[email protected] ("Usamah al-Amin")
Newsgroups php.general
Message-ID <[email protected]>
>  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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.