title: Difficult to remember the functions defined in PHP due to no return type defined in the code
body: <p>I find it hard to remember the function declaration or functions in PHP. First, if I have a function like "getElementsByTagName()". If I code this in Java, I will write down the full return type and the type of the parameters.. i.e</p>
  
  <pre><code>DOMNodeList nodelist =  dom.getElementsByTagName ( string "name" )
  </code></pre>
  
  <p>By coding like this, I will remember the return type is DOMNodeList and only call function in DomNodeList.</p>
  
  <p>In PHP, the type is omitted in the code.</p>
  
  <pre><code>$dom = document.getELementsByTagName("tag");
  </code></pre>
  
  <p>Is there a way to include the type implicitly in the code so I won't forget it. I would like to remember the parameter type and the return type of the function that I am calling. </p>
  
  <p>Thanks</p>