The same function name can be used for multiple functions in the same PHP script.

  • TRUE
  • FALSE
Yes, in PHP, you can define multiple functions with the same name in the same script. This is known as function overloading. However, unlike some other programming languages, PHP does not support function overloading by differentiating functions based on the number or type of arguments. The most recently declared function with the same name will be used. Learn more: https://www.php.net/manual/en/functions.user-defined.php
Add your answer
Loading...

Leave a comment

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