<?php $str = "helloworldfoobar"; $arr = array('stam','world','mamash'); foreach($arr as $item){ if($place = strpos($str,$item)){ echo $place; } }
You have javascript disabled. You will not be able to edit any code.