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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 06:01:32 2024 UTC