Thread: php question
View Single Post
Old 07-08-2005, 03:38 PM  
aztecvision
Confirmed User
 
Join Date: Feb 2003
Posts: 979
php question

How do you trim a variable's value to allways display a certain amount of characters, no matter how long the original varialbe may be?

Example:
$var1 = "123456789";
I need to only display the first 6 characters "123456"; basically hidding 789
aztecvision is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote