我有这样的代码:
(请打开此链接)
<?php
function stop_words($dok){
$dokumen_trim = trim($dok);
$dokumen_trim = strtolower($dokumen_trim);
$hilangg = array("yang","di","dan","itu","dengan","untuk","tidak","ini","dari","dalam","akan","pada","juga","saya","ke","karena","tersebut","bisa","ada","mereka","lebih","sudah","atau","saat","oleh");
$dokumen_trim = str_replace("/\b".$hilangg."\b/i", "", $dokumen_trim);
return $dokumen_trim;
}
?>
但是,它不起作用..请帮帮我