Bug #79904 [Opn->Nab]: printf() and sprintf() not proper formatted string.
Edit report at https://bugs.php.net/bug.php?id=79904&edit=1
ID: 79904
Updated by: requinix@php.net
Reported by: amit000790 at gmail dot com
Summary: printf() and sprintf() not proper formatted string.
-Status: Open
+Status: Not a bug
Type: Bug
Package: Strings related
Operating System: ubuntu LTS 20.04
PHP Version: 7.4.8
Block user comment: N
Private report: N
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
If you want a literal percent sign then you have to escape it as %%.
Previous Comments:
------------------------------------------------------------------------
[2020-07-28 04:35:55] amit000790 at gmail dot com
Description:
------------
- when I used % sign in a string, as a result after the first-word letter skipped.
Test script:
---------------
printf(
'12.5% tax price: %1$s',
'1200'
);
Expected result:
----------------
12.5% tax price: 1200
Actual result:
--------------
12.5ax price: 1200
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79904&edit=1
Thread (2 messages)