'Januari','02'=>'Pebruari','03'=>'Maret','04'=>'April','05'=>'Mei','06'=>'Juni','07'=>'Juli','08'=>'Agustus','09'=>'September','10'=>'Oktober','11'=>'Nopember','12'=>'Desember'); /***************************************************************************** * * * Text truncate * * Parameter $text, $length=char widht * ****************************************************************************/ function get_text($text, $length) { $text_brief = substr($text, 0, $length); $text_brief_last_word_pos = strrpos($text_brief, " "); $text_brief = substr($text_brief, 0, $text_brief_last_word_pos); return $text_brief . " ..."; } /***************************************************************************** * * * Text secure * * Parameter $text * ****************************************************************************/ function sectext($text) { $text = preg_replace("/(\)/si", "dada", "$text"); $text = strip_tags($text); $text = str_replace("