Re: validating textarea using php

From: Date: Tue, 13 May 2008 16:02:02 +0000
Subject: Re: validating textarea using php
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-274258@lists.php.net to get a copy of this message
> 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

« previous php.general (#274258) next »