php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "weeks"

What methods can be used to calculate the shift for a specific date in a repeating cycle in PHP?

When dealing with a repeating cycle, such as a weekly schedule or a monthly rotation, it may be necessary to calculate the shift for a specific date w...

Are there any best practices for managing the lifespan of cookies in PHP?

When managing the lifespan of cookies in PHP, it is important to set an appropriate expiration time to ensure they are not stored indefinitely on the...

What potential issues can arise when adding a fixed number to the result of date("W") in PHP?

Adding a fixed number to the result of date("W") in PHP can potentially lead to incorrect week calculations, especially when crossing over into a new...

How can the use of absolute and relative DateTime formats in PHP arrays improve date calculations in SQL queries?

When dealing with date calculations in SQL queries, using absolute and relative DateTime formats in PHP arrays can improve the accuracy and efficiency...

What are the differences between using date('W') and date('w') in PHP, and how can they impact the implementation of a calendar week starting on Sunday?

Using date('W') in PHP will return the ISO-8601 week number of the year, where weeks start on Monday. On the other hand, using date('w') will return t...

Showing 101 to 105 of 107 results

‹ 1 2 ... 13 14 15 16 17 18 19 20 21 22 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.