php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "week"

What is the difference between 'last thursday' and 'thursday last week' in PHP date calculations?

When using PHP date calculations, 'last thursday' refers to the most recent Thursday that occurred, regardless of the current day of the week. On the...

How can you determine the day of the week from a day number in PHP?

To determine the day of the week from a day number in PHP, you can use the `date()` function along with the `l` format character, which returns the fu...

How can one determine the time span for a specific week based on the current date in PHP?

To determine the time span for a specific week based on the current date in PHP, you can use the `strtotime` function to calculate the start and end d...

How can PHP be used to accurately calculate the start and end dates of each week in a given month?

To accurately calculate the start and end dates of each week in a given month using PHP, we can utilize the DateTime class to iterate through each wee...

How can the code provided be optimized for better performance and accuracy in determining the current week?

The issue with the current code is that it relies on the `date` function to determine the current week, which may not always be accurate due to differ...

Showing 46 to 50 of 346 results

‹ 1 2 ... 7 8 9 10 11 12 13 ... 69 70 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.