<?php $haystack = 'this is a good school'; $pattern = 'sch'; $match = strstr($haystack, $pattern); $result = strlen($match) - strlen($pattern); echo $result; ?>
You have javascript disabled. You will not be able to edit any code.