php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "format string"

What function can be used to convert a date string into a specific format in PHP?

To convert a date string into a specific format in PHP, you can use the `DateTime` class along with the `format()` method. This method allows you to s...

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 you verify if a string has a valid IP format in PHP?

To verify if a string has a valid IP format in PHP, you can use the `filter_var` function with the `FILTER_VALIDATE_IP` filter option. This function w...

What is the best practice for converting a date string generated with strftime in the format "%e. %B %Y" to a MySQL-compliant format like YYYY-MM-DD?

When converting a date string generated with strftime in the format "%e. %B %Y" to a MySQL-compliant format like YYYY-MM-DD, you can use the strtotime...

What is the function used to convert a string to a specific date format in PHP?

To convert a string to a specific date format in PHP, you can use the `DateTime` class along with the `createFromFormat()` method. This method allows...

Showing 1 to 5 of 10000 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.