<?php function doescontain($tocheck, $inlong){ preg_match("/$tocheck/", $inlong, $matches); return !empty($matches[0]); } $tocheck = 'zaba'; $inlong = 'dzamburu n koma baba n dingo'; print_r(doescontain($tocheck, $inlong));
You have javascript disabled. You will not be able to edit any code.