php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "number format"

What is the recommended format for storing dates in a database to easily filter out records older than a certain number of days?

Storing dates in a database using the format "YYYY-MM-DD" (e.g. 2022-01-31) is recommended for easy filtering based on date ranges. This format allows...

What function can be used to convert a date in the format "01.07.2004 14:09:56" to a number in PHP?

To convert a date in the format "01.07.2004 14:09:56" to a number in PHP, you can use the strtotime() function. This function parses an English textua...

In the context of PHP, what are the benefits of using printf to format a number with leading zeros?

When working with numbers in PHP, it is common to need to format them with leading zeros to maintain a consistent length, especially when dealing with...

How can PHP developers efficiently utilize format strings to optimize database queries and reduce the number of queries needed?

PHP developers can efficiently utilize format strings to optimize database queries by dynamically inserting variables into the query string. This allo...

What alternative functions or methods can be used to ensure that a specific number format, such as adding trailing zeros, is achieved in PHP?

When working with numbers in PHP, it is common to encounter the need to format them in a specific way, such as adding trailing zeros. One way to achie...

Showing 26 to 30 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.