HTMLify
Day 121
Views: 2 | Author: djdj
1 2 3 4 5 6 7 8 9 10 11 12 13 | class Solution { /** * @param String $haystack * @param String $needle * @return Integer */ function strStr($haystack, $needle) { $index = strpos($haystack, $needle); if($index !== false) return $index; else return -1; } } |