<?php $haystack = 'abcd'; $needle = 'a'; $pos = strpos($haystack, $needle); if (!$pos) { echo "miss"; } else { echo "hit " . $pos; }
You have javascript disabled. You will not be able to edit any code.