What is the significance of the three dots in this function signature?

Advertisement

  • It makes the function variadic, allowing it to accept as an argument an array containing an arbitrary number of values.
  • It makes the function variadic, allowing it to accept an arbitrary number of arguments that are converted into an array inside the function.
  • It temporarily disables the function while debugging other parts of the script.
  • It’s a placeholder like a TO DO reminder that automatically triggers a notice when you run a script before completing the function definition.
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend