php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "number format"

How can PHP developers ensure that the format of the number retrieved from the database remains consistent when splitting it into separate strings?

When retrieving a number from the database in PHP, developers can ensure that the format remains consistent when splitting it into separate strings by...

What is the best way to convert a number of seconds into a format like TT:HH:MM:SS in PHP?

To convert a number of seconds into a format like TT:HH:MM:SS in PHP, you can use the following logic: calculate the total hours, minutes, and seconds...

What function in PHP can be used to format a number with a specific number of leading zeros?

To format a number with a specific number of leading zeros in PHP, you can use the str_pad() function. This function pads a string to a certain length...

How can PHP be used to format numbers with a specific number of decimal places for display in HTML?

To format numbers with a specific number of decimal places for display in HTML using PHP, you can use the number_format() function. This function allo...

How can PHP be used to format decimal numbers with a specific number of decimal places?

When formatting decimal numbers with a specific number of decimal places in PHP, you can use the number_format() function. This function allows you to...

Showing 11 to 15 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.