Answer Posted / Neeraj Kumar Tyagi
substr() is a PHP function used to extract a substring from a string by specifying the starting position, length, or both. strstr(), on the other hand, is a PHP function that returns a substring starting from the first occurrence of a specified search string.nExample:nsubstr("Hello World", 7) would return "World";nstrstr("Hello World", "World") would also return "World". Note that strstr() is case-sensitive.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers