php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "certain days"

How can the INTERVAL keyword be used to add days to a date in MySQL queries?

To add days to a date in MySQL queries, you can use the INTERVAL keyword along with the DATE_ADD function. This allows you to specify the number of da...

What are the best practices for accurately rounding months when converting days to months in PHP?

When converting days to months in PHP, it's important to accurately round the months to avoid discrepancies. One common approach is to divide the tota...

How can time() and mktime() be used to determine the remaining days between two dates in PHP?

To determine the remaining days between two dates in PHP, you can use the time() and mktime() functions to calculate the difference in seconds between...

How can a timestamp be created in PHP to get the number of days in a month?

To create a timestamp in PHP to get the number of days in a month, you can use the `t` format character in the `date()` function. This character retur...

Is there a recommended approach for getting the number of days in the previous months using PHP?

To get the number of days in the previous months using PHP, you can use the `date()` function in combination with `strtotime()` to calculate the numbe...

Showing 36 to 40 of 6453 results

‹ 1 2 ... 5 6 7 8 9 10 11 ... 1290 1291 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.