Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
$s='Аз, той, тя, ние, вие, те';
echo preg_replace('#\b(Аз|той|тя|ние|вие|те)\b#ieus','"<a href=\"http://site.com/".mb_strtolower("$1","UTF-8")."\">".mb_strtolower("$1","UTF-8")."</a>"',$s);
echo preg_replace('#(Аз|той|тя|ние|вие|те)#ieus','"<a href=\"http://site.com/".mb_strtolower("\\1","UTF-8")."\">".mb_strtolower("\\1","UTF-8")."</a>"',$s)."\n";
echo preg_replace('#([а-я]+)#ieus','"<a href=\"http://site.com/".rawurlencode("$1").">$1</a>"',mb_strtolower($s,"UTF-8"))."\n";
Liberate каза:а бе за къв прег матч говорите вие луди ли сте...
скивай как се праи мн лесно
Код:<?php $tags = "аз, ти, той, тя, то, ние, вие, те"; $tag = explode(", ",$tags); foreach($tag as $key){ $link[] = "<a href="http://site.com/$key">$key</a>"; } echo implode(", ",$link); ?>