![]() |
PHP function to truncate a string...
Can someone please let me know which function I should be looking for to truncate a variable string to a set number of characters?
Ex. $string="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; function to truncate("$string", 5); echo function to truncate(); //Would output "ABCDE" Any assistance is appreciated. Thanks |
I find your lack of truncated strings disturbing.
|
substr ( string string, int start [, int length] )
|
More info on it.
http://us4.php.net/manual/en/function.substr.php |
| All times are GMT -7. The time now is 01:21 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123