is valid?      

Text formatted with Texy:


function utf2ascii($title) {
    $title  = mb_strtolower(trim($title));
    $hemzy = Array(
    "а" => "a","б" => "b","ц" => "c","д" => "d","э" => "e",
    "Ф" => "f","г" => "g","х" => "h","и" => "i","й" => "j",
    "к" => "k","л" => "l","м" => "m","н" => "n","о" => "o",
    "п" => "p","р" => "r","с" => "s","т" => "t","у" => "u",
    "в" => "v","ы" => "y","з" => "z","ч" => "ch","ш" => "sh",
    "ж" => "zh","ю" => "ju","я" => "ja","릱uot; => "jo","е" => "je",
    "кв" => "q","кс" => "x","ь" => "","ъ" => "");
    $title = strtr($title, $hemzy);
    preg_match_all('/[a-zA-Z0-9]+/', $title, $nt);
    return mb_strtolower(implode('-', $nt[0]));
}

Главными направлениями работы фирмы LUKRO, spol. s.r.o. являются поставки запасных частей и целых

Generated HTML code:

<pre
class="language-php"><code>
function utf2ascii($title) {
    $title  = mb_strtolower(trim($title));
    $hemzy = Array(
    &quot;&amp;#1072;&quot; =&gt; &quot;a&quot;,&quot;&amp;#1073;&quot; =&gt; &quot;b&quot;,&quot;&amp;#1094;&quot; =&gt; &quot;c&quot;,&quot;&amp;#1076;&quot; =&gt; &quot;d&quot;,&quot;&amp;#1101;&quot; =&gt; &quot;e&quot;,
    &quot;&amp;#1060;&quot; =&gt; &quot;f&quot;,&quot;&amp;#1075;&quot; =&gt; &quot;g&quot;,&quot;&amp;#1093;&quot; =&gt; &quot;h&quot;,&quot;&amp;#1080;&quot; =&gt; &quot;i&quot;,&quot;&amp;#1081;&quot; =&gt; &quot;j&quot;,
    &quot;&amp;#1082;&quot; =&gt; &quot;k&quot;,&quot;&amp;#1083;&quot; =&gt; &quot;l&quot;,&quot;&amp;#1084;&quot; =&gt; &quot;m&quot;,&quot;&amp;#1085;&quot; =&gt; &quot;n&quot;,&quot;&amp;#1086;&quot; =&gt; &quot;o&quot;,
    &quot;&amp;#1087;&quot; =&gt; &quot;p&quot;,&quot;&amp;#1088;&quot; =&gt; &quot;r&quot;,&quot;&amp;#1089;&quot; =&gt; &quot;s&quot;,&quot;&amp;#1090;&quot; =&gt; &quot;t&quot;,&quot;&amp;#1091;&quot; =&gt; &quot;u&quot;,
    &quot;&amp;#1074;&quot; =&gt; &quot;v&quot;,&quot;&amp;#1099;&quot; =&gt; &quot;y&quot;,&quot;&amp;#1079;&quot; =&gt; &quot;z&quot;,&quot;&amp;#1095;&quot; =&gt; &quot;ch&quot;,&quot;&amp;#1096;&quot; =&gt; &quot;sh&quot;,
    &quot;&amp;#1078;&quot; =&gt; &quot;zh&quot;,&quot;&amp;#1102;&quot; =&gt; &quot;ju&quot;,&quot;&amp;#1103;&quot; =&gt; &quot;ja&quot;,&quot;릱uot; =&gt; &quot;jo&quot;,&quot;&amp;#1077;&quot; =&gt; &quot;je&quot;,
    &quot;&amp;#1082;&amp;#1074;&quot; =&gt; &quot;q&quot;,&quot;&amp;#1082;&amp;#1089;&quot; =&gt; &quot;x&quot;,&quot;&amp;#1100;&quot; =&gt; &quot;&quot;,&quot;&amp;#1098;&quot; =&gt; &quot;&quot;);
    $title = strtr($title, $hemzy);
    preg_match_all(&#039;/[a-zA-Z0-9]+/&#039;, $title, $nt);
    return mb_strtolower(implode(&#039;-&#039;, $nt[0]));
}</code></pre>

<p>Главными направлениями работы фирмы LUKRO,
spol. s.r.o. являются поставки запасных частей
и&nbsp;целых</p>

Verze Texy: 3.2.3 (konfigurace)