use substr($str, 0, 1000) -----Original Message----- From: Håkan [mailto:hw2k@;barrysworld.com] Sent: Friday, November 08, 2002 12:53 PM To: [EMAIL PROTECTED] Subject: [PHP] How to limit chars?
Let's say I have a text field in my mysql database, and a <textarea> where I write whatever, and I want to limit it to 1000 chars or something like that before I add it to the database, I know I can do it with javascript, but that's so messy and I don't have time to figure that out right now :) Håkan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php