PHP Strings Function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

PHP Strings Function

Post 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"
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

substr($word, 0, 3); ?
Last edited by Luke on Fri Jul 21, 2006 6:07 pm, edited 1 time in total.
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

that's what it is.thanks! it was escaping me.
Post Reply