1
0
Fork 0
php-coding/5.work3.markup.php

6 lines
175 B
PHP

<?php
$text = nl2br($_POST['text']);
$keyword = trim($_POST['keyword']);
$text1 = str_ireplace($keyword,"<span style='color: red'><b>$keyword</b></span>",$text);
echo $text1;