<?phpforeach($pal as $palabra) {$texto = str_replace($palabra, '<b>' . $palabra . '</b>', $texto);}?>