Cut String from the end after certain number of characters
Posted: Mon Aug 11, 2014 11:40 pm
hello
can somebody tell me how to use the substr() command so if i have a string like this
$alphabet = abcdefghijklmnopqrstuvwxyz
i want the max length of the string to be 15 characters and i want it to cut off after the 15th character
so $alphabet would become abcdefghijklmno
thank you
can somebody tell me how to use the substr() command so if i have a string like this
$alphabet = abcdefghijklmnopqrstuvwxyz
i want the max length of the string to be 15 characters and i want it to cut off after the 15th character
so $alphabet would become abcdefghijklmno
thank you