Friday, October 28, 2011

how to limit characters in a variable

$variablef= substr($variable,0,21);

21 being the number of characters you want to shorten it to

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...
Web Design & Marketing - Click and get an instant quote on your project