This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Returns the index of the first occurrence of the | |
* specified substring. If it's not found return -1. | |
* | |
* @param text The string to be scanned | |
* @param pattern The target string to search | |
* @return The start index of the substring | |
*/ |