<?php $titles_array = array("asdf","xcv","","123"); $subject = "sd"; foreach($titles_array as $k=>$v) { if(strpos($subject,$v) !== false) { $i++; $asd[$titles['id']] = $i; } }
You have javascript disabled. You will not be able to edit any code.