cut off a string?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

cut off a string?

From: <dev>
Date: Thu Jun 30 2005 - 09:49:59 CEST

Hey all,

I have a small CMS tool that users can leave a max 200 characters message.

everthing is fine but IF someone does something like this:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
200 characters long

my whole layout bearks appart even when i use style="width:300px" etc

so is there a premade function in php that splits my words?

Cheers,

D
Received on Mon Oct 17 20:59:51 2005