Software Developer's Bookmark
Code & Examples, Tutorials for Software Developers
Wednesday, October 22, 2014
php дээр том жижиг үсэг ялгалгүй текст солих арга
$text = "while Машин. Wear socks машин их МАШ NOW";
$context = preg_replace_callback("/(маш)+/iu", function($a) {
return '<b>' . $a[1] . '</b>';
}, $text);
echo $context;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment