Page 1 of 1

PHP Strings Function

Posted: Fri Jul 21, 2006 6:03 pm
by Charles256
Damn it... I need to limit the number of displayed charectesr from a string, what the hell is the name of that PHP function?help! I.E. I pulled "theword" from a database and just want to show "the"

Posted: Fri Jul 21, 2006 6:07 pm
by Luke
substr($word, 0, 3); ?

Posted: Fri Jul 21, 2006 6:08 pm
by Charles256
that's what it is.thanks! it was escaping me.