我想更換一個陣列的重複一句話,讓我這樣做:的preg_replace陣列PHP的簡單的HTML DOM解析器
$thisarray = preg_replace ("/HELLO/"), "BYE", $thisarray);
echo $thisarray[0];
這完美的作品...問題是當我使用PHP簡單的HTML DOM PARSER指令 「明文」
$thisarray = preg_replace ("/HELLO/"), "BYE", $thisarray);
echo $thisarray[0]->plaintext;
它說:注意:試圖讓非對象的財產
的var_dump($ thisarray),並找出如果有語法錯誤明文存在 –