Re: vsprintf()
| From: | Johannes Schlüter | Date: | Wed, 24 Apr 2013 15:53:58 +0000 |
| Subject: | Re: vsprintf() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-67127@lists.php.net to get a copy of this message | ||
On Wed, 2013-04-24 at 11:45 -0400, Rasmus Schultz wrote:
> This is all kinds of wrong:
>
> http://3v4l.org/UZFME
>
> So the order in which the properties were defined is the magic that makes
> this work.
>
> Wow. WTF?
>
> Do I need to explain in detail why this is all kinds of effed up?
vsprintf()'s 2nd parameter is an array,so your objectis converted to an
array ['str1' => 'foo', 'str2'=>'bar'] and PHP arrays
are ordered.
johannes