How To Limit Characters In A String In PHP Scripts Code
- Forums
- Linux Hosting
- How To Limit Characters In A String In PHP Scripts Code
This Forums Page Contains information about How To Limit Characters In A String In PHP Scripts Code By questions with Replies. Last Upated: Wed Mar 12, 2014 [441], Last Updated: Sat May 18, 2024
questions
Mon Jun 25, 2007
4 Comments
5723 Visits
hi, im fairly new to php, and i was wondering if its possible to limit the numbers of letter or numbers (characters) in a string. for example, i have this sample code string:
$string = "i have alot of words here and want to make it shorter";
ok, lets say i only want to show the first 15 characters from this string, how would i do that?
the output will display something like this:
OUTPUT:
hope this help? if you ever need php web hosting, the best you can find is at www.webune.com
Webune.com has the best php webhoting anywhere. i recommend them to all my customers, they have great support also. i should know, because i am answering this question to you on behalf of Webune.