<?php $str ="Model number is FM223-56/89."; $model ="FM223-56/89."; $pattern = '/(?!\B\w)' . preg_quote($model, '/') . '(?<!\w\B)/'; echo preg_match($pattern, $str);
You have javascript disabled. You will not be able to edit any code.