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.
<?
function short_text($text,$length){
$maxTextLenght=$length;
$aspace=" ";
if(strlen($text) > $maxTextLenght ) {
$text = substr(trim($text),0,$maxTextLenght);
$text = substr($text,0,strlen($text)-strpos(strrev($text),$aspace));
$text = $text.'...';
}
return $text;
}
?>
// Promenliwata $our_text sudurja washija text
echo short_text($our_text,200);
echo("".$row['sadarjanie']."");
<?
function short_text($text,$length){
$maxTextLenght=$length;
$aspace=" ";
if(strlen($text) > $maxTextLenght ) {
$text = substr(trim($text),0,$maxTextLenght);
$text = substr($text,0,strlen($text)-strpos(strrev($text),$aspace));
$text = $text.'...';
}
return $text;
}
echo short_text($row['sadarjanie'],200);
?>