Hi
I have a string:
$string="aslkjd aslkdiwedweodij "
When printing it out, I want it to be limited to 10 characters followed
by "..."
Result:
"asjdksledo ..."
I only want this to happen when the string is longer than 10
characters.
How can this be done in php? I know how to do it in Perl through reg
exp.. :/
Thanks!
I have a string:
$string="aslkjd aslkdiwedweodij "
When printing it out, I want it to be limited to 10 characters followed
by "..."
Result:
"asjdksledo ..."
I only want this to happen when the string is longer than 10
characters.
How can this be done in php? I know how to do it in Perl through reg
exp.. :/
Thanks!
Comment