You can use the 'substr' function

$reduced_string = substr($str, 0, 60);

More info available at

Amit Arora

Cole Ashcraft wrote:
How would you reduce a string to a specified length? Say reduce 600 to
60 or abc to ab? Is there a PHP function for this? Will I have to write
my own code?


-- PHP Database Mailing List ( To unsubscribe, visit:

Reply via email to