php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "strtotime()"

What are some common pitfalls when using the strtotime function in PHP?

One common pitfall when using the strtotime function in PHP is that it relies heavily on the date format provided, which can lead to unexpected result...

How can the issue of displaying the wrong year when using strtotime be avoided in PHP?

When using strtotime in PHP, the issue of displaying the wrong year can be avoided by providing a complete date format to strtotime. This ensures that...

What are the differences between using date_create_from_format() and strtotime() for date manipulation in PHP?

When manipulating dates in PHP, date_create_from_format() and strtotime() are two commonly used functions. date_create_from_format() allows you to cre...

How can one troubleshoot receiving a result of -1 when using strtotime() in PHP?

When receiving a result of -1 when using strtotime() in PHP, it typically means that the date string passed to strtotime() is not in a valid format. T...

What are potential pitfalls when using strtotime in PHP for time calculations?

One potential pitfall when using strtotime in PHP for time calculations is that it relies on the server's timezone settings, which can lead to unexpec...

Showing 16 to 20 of 1252 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 250 251 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.