how can this be write:
$result = new Object() -> method();
I've tried with parenthesis around new but nothing.
I know a static function can be defined and the above statement can transform into
$result = Object::getNewInstance() -> method()
but is there any way to write it directly? and if not, why isn't this implemented yet?
new keyword combined with other things.
Moderator: General Moderators
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: new keyword combined with other things.
No. I don't know why, you can post on the php.internals mailing list.drealecs wrote:how can this be write:
$result = new Object() -> method();
I've tried with parenthesis around new but nothing.
I know a static function can be defined and the above statement can transform into
$result = Object::getNewInstance() -> method()
but is there any way to write it directly? and if not, why isn't this implemented yet?
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.