#25354 [WFx]: Easy access to class/object methods/vars

From: Date: Sun, 30 Apr 2006 21:27:21 +0000
Subject: #25354 [WFx]: Easy access to class/object methods/vars
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-96403@lists.php.net to get a copy of this message
ID: 25354 User updated by: morten at nilsen dot com Reported By: morten at nilsen dot com Status: Wont fix Bug Type: Feature/Change Request Operating System: All PHP Version: 4.3.2 New Comment: I believe that would be now? Previous Comments: ------------------------------------------------------------------------ [2003-09-02 04:37:43] helly@php.net Maybe you come back when we start developing PHP 6 :-) ------------------------------------------------------------------------ [2003-09-02 04:28:40] morten at nilsen dot com Description: ------------ It would be quite nifty with something like this: with($class) { set("myvar1", "myvalue1"); set("myvar2", "myvalue2"); set("myvar3", "myvalue3"); set("myvar4", func_not_in_class("foo")); } instead of doing something like this: $class->set("myvar1", "myvalue1"); $class->set("myvar2", "myvalue2"); $class->set("myvar3", "myvalue3"); $class->set("myvar4", func_not_in_class("foo")); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25354&edit=1

« previous php.bugs (#96403) next »