php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "PHP function"

How does the NOW() function in PHP differ from the MySQL function with the same name?

The NOW() function in PHP returns the current date and time in the format 'Y-m-d H:i:s', while the MySQL NOW() function returns the current date and t...

How can PHP developers ensure that variables defined in a function are accessible outside of the function scope?

To make variables defined in a function accessible outside of the function scope in PHP, developers can use the "global" keyword to declare the variab...

What is the best practice for passing variables from outside a function to inside a function in PHP?

When passing variables from outside a function to inside a function in PHP, it is best practice to use function parameters. This ensures that the func...

How can a PHP function be triggered when clicking on a link without using the _GET function?

To trigger a PHP function when clicking on a link without using the _GET function, you can use JavaScript to make an AJAX request to a PHP file that c...

Can a function be passed as a parameter to another function in PHP?

Yes, in PHP, you can pass a function as a parameter to another function. This is commonly done using anonymous functions or closures. By passing funct...

Showing 36 to 40 of 10000 results

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

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.