Req #48320 [Opn->Fbk]: assoc arrays with vsprintf
| From: | levim@php.net | Date: | Wed, 30 Apr 2014 22:51:45 +0000 |
| Subject: | Req #48320 [Opn->Fbk]: assoc arrays with vsprintf | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-185533@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=48320&edit=1
ID: 48320
Updated by: levim@php.net
Reported by: yasar dot oezdemir at web dot de
Summary: assoc arrays with vsprintf
-Status: Open
+Status: Feedback
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: Strings related
-Operating System: irrelevant
+Operating System: Irrelevant
-PHP Version: 5.2.9
+PHP Version: Any
Block user comment: N
Private report: N
New Comment:
Is this something you are still interested in seeing?
Previous Comments:
------------------------------------------------------------------------
[2009-05-18 21:32:01] yasar dot oezdemir at web dot de
Description:
------------
It would be VERY helpful if you could add the functionality of associated arrays in vpsprintf.
That would also make many view template scripts easier.
Reproduce code:
---------------
vsprintf("%2$s %1$s", array('bar','foo'))
Expected result:
----------------
vsprintf("%first$s %second$s",
array('second'=>'bar','first'=>'foo'))
Actual result:
--------------
foo bar
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=48320&edit=1