php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #10869 bug in an example
Submitted: 2001-05-15 04:39 UTC Modified: 2001-05-15 04:57 UTC
From: w dot zakeyan at gulliver dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.5 OS: windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: w dot zakeyan at gulliver dot com
New email:
PHP Version: OS:

 

 [2001-05-15 04:39 UTC] w dot zakeyan at gulliver dot com
there's a bug in an example of the sprintf function :
that's the function called "money" in the while loop the affectation is not right.

correction :
$thenumber = "," . substr($left, -3) . $thenumber;

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-15 04:48 UTC] derick@php.net
I can't find the things you are refering too. Can you please
post both the example as you find in the manual and the corrected version?

Derick
 [2001-05-15 04:51 UTC] w dot zakeyan at gulliver dot com
the example is in the web site.
 [2001-05-15 04:57 UTC] derick@php.net
I deleted the note from the manual, as number_format() is a much easier way for this.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon May 05 21:01:29 2025 UTC