<?php $array = [ "This is a test", "This is a TEST", "Test this testy contest protest test!", "TeSt this", ]; var_export( preg_replace('/\btest\b/i', '<b>$0</b>', $array) );
You have javascript disabled. You will not be able to edit any code.