how to call function in other file? php
<p>I haven't found anywhere answer for this.</p>

<p>I have a file error-status.php, which includes function:</p>

<pre><code>function validateHostName($hostName)
{
    if ((strpbrk($hostName,'`~!@#$^&amp;*()=+.[ ]{}\\|;:\'",&lt;&gt;/?')==FALSE) &amp;&amp; !ctype_digit($hostName) &amp;&amp; eregi("^([a-z0-9-]+)$",$hostName) &amp;&amp; ereg("^[^-]",$hostName) &amp;&amp; ereg("[^-]$",$hostName))
    {
        return true;
    }
    else
    {
        return false;
    }
}
</code></pre>

<p>....</p>

<p>How do I call that function from other file - forexample other.php?
like:</p>

<pre><code>require_once('error-status.php');
</code></pre>

<p>now how i call function in that in php plz help me</p>
