A function in PHP is a block of code that can be _______ when required.

  • called
  • declared
  • imported
  • executed
The correct option is: "called." A function in PHP is defined to encapsulate a set of instructions, which can be called or invoked at any point in the program when needed. This allows for code reuse and modularity. Learn more: https://www.php.net/manual/en/language.functions.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *