I need to use PHP to get the string length [which I already have with strlen()] and trim off any characters after a certain length. In other words, if the word PURPLE was returned from the query, and I wanted to restrict the number of chracters to 4, then the output would actually read PURP... and not PURPLE.
Any ideas?
Any ideas?