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
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: 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: Fri Oct 09 01:00:01 2026 UTC