title: object properties visable in function1 but not function2
body: <p>I am learning php objects but I am confused by the results of this code. When the <code>mail</code> function is called, all of the object properties are passed as expected and there are no errors. When the <code>MakeCommuni</code> function is called, the first three properties are passed but the last two, which are the same object properties as the previous function, produce the following error: </p>
  
  <p><strong>Notice: Undefined property: obj_em_OrPS::$getToAdd in .../public_html/i_sendEmail.php on line 45</strong></p>
  
  <pre><code>$objASstr = file_get_contents($usFile);
  $objEM = unserialize($objASstr);
  $mResult = 'Uh-Oh... test test.';
  if (mail($objEM-&gt;getToAdd(),$objEM-&gt;getSubject(),$objEM-&gt;getBody(),$objEM-&gt;getHeader())){
      $mResult = 'eMail has been sent.';
      $mResul2 = MakeCommuni($mOrderID, date("Y-m-d H:m:s"), 'email',$objEM-&gt;getToAdd,$objEM-&gt;getSubject);
  }
  else {
      $mResult = 'Uh-Oh... NO! NO! eMail has NOT been sent.';
  }
  </code></pre>
  
  <p>(BTW MakeCommuni() is a custom function that runs w/o error elsewhere)</p>
  
  <p>Thanks for your help.</p>