<?php $string = 'test asdbtestkuiasd TEST asdbctest'; $pattern = '/(test)/i'; $count = preg_match_all($pattern, $string, $matches); echo $count; print_r($matches);
You have javascript disabled. You will not be able to edit any code.