$string = substr($string, 0, 10);

Thats all there is to it.

-----Original Message-----
From: Marcos Lloret [mailto:[EMAIL PROTECTED]]
Sent: den 31 augusti 2001 09:53
Subject: [PHP] just 10 characters from a string 

hi to all,
    i have a long string (about 255 characters) and i would like to show only 10. how 
can i do it?

thanks in advance,


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]

Reply via email to