php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "function returns"

Are there alternative ways to achieve conditional returns in PHP besides using the Trinitary Operator?

When you need to return a value conditionally in PHP, the Trinitary Operator (also known as the ternary operator) is a common choice. However, an alte...

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 using a class that accepts the SQL command and returns a resource benefit PHP development?

Using a class that accepts the SQL command and returns a resource can benefit PHP development by encapsulating database operations, promoting code reu...

How can the PHP script be modified to only execute if the JavaScript confirmation returns true?

To ensure that the PHP script is only executed if the JavaScript confirmation returns true, you can use AJAX to send a request to the PHP script only...

What is the difference between SID and session_id() in PHP, and why might one return an empty string while the other returns a result?

The difference between SID and session_id() in PHP is that SID retrieves the current session ID from either a session cookie or the URL, while session...

Showing 51 to 55 of 10000 results

‹ 1 2 ... 8 9 10 11 12 13 14 ... 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.