Copy a function's content into an other
<p>I would like to insert the following code:</p>

<pre><code>if ($this-&gt;id == null) {
  return false;
}
</code></pre>

<p>in several methods of a class. I coulde use <code>include("mycode.php')</code> to do so, but it's pretty ugly.</p>

<p>Is there a way to do it calling a function (so it will return false in an higher scope) ?</p>
