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