php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "function name"

What are the consequences of declaring a function with the same name multiple times in PHP?

Declaring a function with the same name multiple times in PHP will result in a "Fatal error: Cannot redeclare" message, as PHP does not allow for func...

How can you retrieve the current file name in PHP?

To retrieve the current file name in PHP, you can use the `basename()` function along with the `__FILE__` magic constant. This function will return th...

How can the PHP function gethostbyaddr() be used to retrieve the host name associated with the user's IP address in PHP?

To retrieve the host name associated with a user's IP address in PHP, you can use the `gethostbyaddr()` function. This function takes the IP address a...

How can one modify email headers in PHP to display a custom sender name instead of an email or server name?

To modify email headers in PHP to display a custom sender name instead of an email or server name, you can use the "From" header in the mail function....

How can you output the variable name in addition to the minimum value in the min() function in PHP?

To output the variable name along with the minimum value in the min() function in PHP, you can create an associative array where the keys are the vari...

Showing 31 to 35 of 10000 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 1999 2000 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • Privacy
  • FAQ

© 2025 php.org. All rights reserved.