title: Can we pass an array as parameter in any function in PHP?
body: <p>I have a function to send mail to users and I want to pass one of its parameter as an array of ids.</p>
  
  <p>Is this possible to do? If yes, how can it be done?</p>
  
  <p>Suppose we have a function as:</p>
  
  <pre><code>function sendemail($id, $userid) {
  
  }
  </code></pre>
  
  <p>In the example, <code>$id</code> should be an array.</p>