How to ignore "Trying to get property of non-object" error?
<p>On my localhost, if I do <code>echo $a-&gt;b</code> where <code>$a</code> is not an object, it shows nothing. But on another server, it gives me an error of "Trying to get property of non-object". How to ignore this error? I just want a quick and easy way to make the code running, and I know what I am doing.</p>
