I have a function to send mail to users and I want to pass one of its parameter as an array of ids.
Is this possible to do? If yes, how can it be done?
Suppose w
even more cool, you can pass a variable count of parameters to a function like this:
function sendmail(...$users){ foreach($users as $user){ } } sendmail('user1','user2','user3');