PHP - call function in object with set_error_handler()
<p>I am trying to use this in my page class. I only just started using objects in PHP so I'm still a little clueless (but learning as much as I can). This is in my <code>page()</code> function (so called when there is a new instance of page)</p>

<pre><code>set_error_handler('$this-&gt;appendError');
</code></pre>

<p>This is causing an error</p>

<blockquote>
  <p>Warning: set_error_handler() expects the argument (appendError) to be a valid callback</p>
</blockquote>

<p>Now how do I set a class internal function whilst passing the function as a string. Is this not possible? Should I use a normal function which then calls the class function and sends through all arguments? This sounds a little cumbersome to me.</p>

<p>Or have I missed the problem? I've tried making my appendError return a string, and echo.. but it still isn't playing nice.</p>

<p>Any help would be greatly appreciated.</p>

<p>Thank you!!</p>
