Sure.
To find out the length of a string use the strlen() function.
To pad on extra characters or remove some use substr
Info about each of these at php.net. You can also treat a string like an array of characters using []. ie. $string[23] = "d";
Quote:
|
Originally Posted by vanderweb
can php make it so the text that is printed on a page can all be a certain length: like 20 characters or something? what is the code?
|