php erro ao usar mb_substr

2 views
Skip to first unread message

Nelson o mesmo

unread,
Jan 30, 2014, 11:58:14 AM1/30/14
to


Erro ao "cortar" palavras com carecteres extranhos
<?php
    $fulltext = $value->fulltext;
    $fulltext = explode( '<br /><br />', $fulltext );
    $fulltext = preg_replace("/((<(.*?)?>)(.*?)(>))/sim", "", $fulltext); // Limpar toas as tag html
    echo $fulltext[1] = mb_substr($fulltext[1], 0, 150);
?>

Reply all
Reply to author
Forward
0 new messages