Extracting a substring in PHP
It is possible to extract a substring in PHP by two different methods.
Method one is to use substr method. This method takes three arguments. First one is a variable name, second one is starting number, third argument is number of characters that need to be extracted.
Second one is to treat a string as an array of characters.
Comments
Post a Comment