Re: 5.4's New De-referencing plus assignment
| From: | Александр Москалёв | Date: | Fri, 02 Dec 2011 18:06:26 +0000 |
| Subject: | Re: 5.4's New De-referencing plus assignment | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-56730@lists.php.net to get a copy of this message | ||
($new ? new insert() : new update())->from()->where()->exec();
(same for array and callable expr)
And yes, we can write it by many different ways...
And yes it's not more readable than other ways....
BUT. As I wrote before many times - if we can add this without bc and php
slowdown, user can use it or not as he chose.
With regards, Alexander Moskaliov
Irker@irker.net
///// joke init call
($pingFunc =
function ($pingFunc) {
pingServer('this is crazy joke function');
setLibeventTimer(10, $pingFunc);
} ) ($pingFunc);
>