php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50640 Documentation error
Submitted: 2010-01-03 01:19 UTC Modified: 2010-01-03 09:14 UTC
From: user at example dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.2.12 OS: none
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: user at example dot com
New email:
PHP Version: OS:

 

 [2010-01-03 01:19 UTC] user at example dot com
Description:
------------
The explanation on this page is incorrect
Examples 3 and 4 are false


Reproduce code:
---------------
---
From manual page: function.sprintf#Parameters
---


%1$s is not a valid syntax , the correct syntax is %1\$s
a backslash is needed before $




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-01-03 09:14 UTC] degeberg@php.net
Thank you for your bug report. The format in the manual is correct, however. Perhaps you made another mistake that makes your code not work.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 20:00:02 2026 UTC