Cool Ajax - Web Development Tutorial Blog

Tag : substrings php

Simple trick to extract substrings from a string

Sometimes we need to extract a substring from a long string. Php provide a very flexible and powerful substr()function that allows you to extract a substring from a larger 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 positive integer that means [...]