php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "NOW()"

What is the correct function to use for obtaining the current Unix Timestamp in PHP, and how does it differ from now()?

To obtain the current Unix Timestamp in PHP, you should use the time() function. This function returns the current Unix Timestamp, which represents th...

How can the NOW() function be effectively used in PHP to insert the current date and time into a database field?

To insert the current date and time into a database field using the NOW() function in PHP, you can include the NOW() function directly in the SQL quer...

How can the use of NOW() function in PHP affect the insertion of data into a MySQL database?

When using the NOW() function in PHP to insert the current timestamp into a MySQL database, it's important to ensure that the column in the database t...

What are the advantages and disadvantages of using gmdate() versus Now() for date manipulation in PHP?

When working with dates in PHP, the gmdate() function is useful for obtaining the current GMT/UTC time, while the Now() function provides the current...

How can the timestamp obtained from the now() function be properly utilized for sorting multidimensional arrays in PHP?

When sorting multidimensional arrays in PHP, the timestamp obtained from the now() function can be utilized by assigning it as a key to each sub-array...

Showing 21 to 25 of 180 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 35 36 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.