php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "number_format()"

What does the warning "number_format() expects parameter 1 to be double, string given" indicate in PHP?

The warning "number_format() expects parameter 1 to be double, string given" indicates that the function number_format() is expecting a double data ty...

Are there any performance considerations when using sprintf versus number_format in PHP?

When considering performance, it is generally recommended to use number_format over sprintf in PHP when formatting numbers for display. This is becaus...

What is the role of number_format() in PHP and how can it affect numerical calculations?

The number_format() function in PHP is used to format numerical values with specified decimal points, thousands separators, and decimal separators. Wh...

What potential pitfalls should be considered when using number_format for multiple calculations in PHP?

When using number_format for multiple calculations in PHP, it's important to remember that number_format returns a formatted string, not a numeric val...

When should number_format be used instead of round in PHP?

When dealing with formatting numbers for display purposes, it is generally recommended to use `number_format` instead of `round` in PHP. `number_forma...

Showing 6 to 10 of 670 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 133 134 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.