title: Default visibility of class methods in PHP
body: <p>I looked at the <a href="http://php.net/manual/en/language.oop5.visibility.php" rel="noreferrer">manual</a>, but I can't seem to find the answer.</p>
  
  <p>What is the default visibility in PHP for methods without a visibility declaration? Does PHP have a package visibility like in Java?  </p>
  
  <p>For example, in the following code, is <code>go()</code> public or private?</p>
  
  <pre><code>class test {
    function go() {
    }
  }
  </code></pre>
  
  <p>The reason I asked is that I've seen many constructors code written as <code>function __construct()</code> and some as <code>public function __construct()</code>. Are they equivalent?</p>