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.
emagi каза:
Ако не стане така, смени енкодинга(в червено)$string = "Този текст се съкращава така";
echo mb_substr($string, 0, 10, "utf-8")."...още";
emagi каза:Ако не стане така, смени енкодинга(в червено)$string = "Този текст се съкращава така";
echo mb_substr($string, 0, 10, "utf-8")."...още";
<?php
header("Content-Type:text/html; charset=windows-1251");
$string = "Този текст се съкращава така";
echo mb_strlen($string, "windows-1251")>10 ? mb_substr($string, 0, 10, "windows-1251")."...още" : $string;
?>