I want to replace a repetitive word of an array, so I do this:
$thisarray = preg_replace ("/HELLO/"), "BYE", $thisarray);
echo $thisarray[0];
That works perfect... the problem comes when I use a PHP SIMPLE HTML DOM PARSER instruction "plaintext"
$thisarray = preg_replace ("/HELLO/"), "BYE", $thisarray);
echo $thisarray[0]->plaintext;
It says: Notice: Trying to get property of non-object in