php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "original date"

What is the best way to convert a date string from one format to another in PHP?

When converting a date string from one format to another in PHP, you can use the DateTime class to parse the original date string and then format it t...

How can a serialized array be converted back to its original form in PHP?

When a serialized array needs to be converted back to its original form in PHP, you can use the unserialize() function. This function takes a serializ...

What are alternative methods to using explode for converting date formats in PHP?

When converting date formats in PHP, an alternative method to using explode is by using the DateTime class. This class provides a more robust and reli...

How can PHP be used to validate a user-input date in a specific format (e.g., 01.01.1977)?

To validate a user-input date in a specific format (e.g., 01.01.1977) using PHP, you can use the `DateTime` class along with `DateTime::createFromForm...

Are there alternative methods in PHP for converting date formats, such as from DD.MM.YYYY to YYYY-MM-DD?

To convert date formats in PHP, you can use the DateTime class along with the format() method to easily change the format of a date string. Simply cre...

Showing 21 to 25 of 9999 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 1999 2000 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.