Добро пожаловать, Гость!
как пользоватся rez_text4?
Общие вопросы | как пользоватся rez_text4?



как пользоватся rez_text4?
30 Авг 2013вот как rez_text4 вставить сюда ' . stripcslashes(htmlspecialchars($mp3['name'])) . ' ?кто разбирается в этом помогите
Комментарии:


mars (30 Авг 2013):
Vafler, куда это вставить?
mars, в файл output_text.php по пути/sys/fnc/output_text.php)Vafler, куда это вставить?

Vafler (30 Авг 2013):
Вот 28символов
<?
function rez_text4( $text, $maxwords = 70, $maxchar = 28 ){
$sep=' ';
$sep2=' »';
$words = explode($sep,$text);
$char = iconv_strlen($text,'utf-8');
if (count($words) > $maxwords){
$text = join($sep, array_slice($words, 0, $maxwords));
}
if ( $char > $maxchar ){
$text = iconv_substr( $text, 0, $maxchar, 'utf-8' );
}
return $text.$sep2;
}
?>
Vafler, куда это вставить?Вот 28символов
<?
function rez_text4( $text, $maxwords = 70, $maxchar = 28 ){
$sep=' ';
$sep2=' »';
$words = explode($sep,$text);
$char = iconv_strlen($text,'utf-8');
if (count($words) > $maxwords){
$text = join($sep, array_slice($words, 0, $maxwords));
}
if ( $char > $maxchar ){
$text = iconv_substr( $text, 0, $maxchar, 'utf-8' );
}
return $text.$sep2;
}
?>


Вот 28символов
<?
function rez_text4( $text, $maxwords = 70, $maxchar = 28 ){
$sep=' ';
$sep2=' »';
$words = explode($sep,$text);
$char = iconv_strlen($text,'utf-8');
if (count($words) > $maxwords){
$text = join($sep, array_slice($words, 0, $maxwords));
}
if ( $char > $maxchar ){
$text = iconv_substr( $text, 0, $maxchar, 'utf-8' );
}
return $text.$sep2;
}
?>

Angelok0803 (30 Авг 2013):
mars, Что ты выводить хочешь? Новости типа под титлом?
Angelok0803, нет,просто обрезать название файлаmars, Что ты выводить хочешь? Новости типа под титлом?

Angelok0803 (30 Авг 2013):
mars, Так подожди. Куда ты этот вывод делаешь?
Angelok0803, в wap.phpmars, Так подожди. Куда ты этот вывод делаешь?