|
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
|