Simple trick to extract substrings from a string
Sometimes we need to extract a substring from a long string. PHP provides a powerful function called substr() that allows you to extract a substring from a long string. It takes three parameters: the string to be worked on, a starting index and an optional length. The starting index can be specified as either a […]
