If you're relatively new to the PHP language and want a few handy tips on working with strings, you should check out this list of ten things that Jason Gilmore has put together to help you with some common string manipulations.
PHP's capabilities [string manipulation] are so strong that it can sometimes be difficult to determine the best possible approach for accomplishing a particular string-related task. In this article I highlight the ideal solutions to 10 common string manipulation tasks.
Among the methods in his list of transformations, he includes:
- Truncating Text to Produce a Summary
- Parsing a CSV File
- Converting URLs into Hyperlinks
- Converting Newline Characters to Break Tags