Hiya Dan,
If you're expecting new lines, you could do this:
$length = explode("\n", $message);
if (sizeof($length) > 55) {
// error
}
And also limit the number of characters, using strlen()
James
"Dan" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I would like to run a variable of unlimited length through a filter that
> would limit its length to 55 lines (ie limiting it's length to less than 1
> printed page). Does anyone know of an easy way to do this?
>
> thanks.
>
> Regards,
>
> Dan Barber
> Mojolin
>
> ---------------
> Mojolin: The Open Source/Linux Employment Site
> http://www.mojolin.com
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]