View Full Version : Showing only a certain amount of characters from a value
11-10-2007, 09:03 PM
I'm trying to display the description of someones article. I want to take the first 100 characters of their article and use it as their description, so my question is, is there a function that allows me to limit 100 characters of a value.
11-10-2007, 09:43 PM
$string = substr($string, 0, 100);
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.