From f33b49e5fc1dc1781f1007ab153c657d0d1e44fd Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Thu, 8 Jan 2004 23:50:15 +0000 Subject: [PATCH] the example should reflect what the function does, not only the changes of its behaviour ;) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@148286 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/classobj/functions/get-class-vars.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reference/classobj/functions/get-class-vars.xml b/reference/classobj/functions/get-class-vars.xml index 44cc30269d..983bfc7f68 100644 --- a/reference/classobj/functions/get-class-vars.xml +++ b/reference/classobj/functions/get-class-vars.xml @@ -1,5 +1,5 @@ - + @@ -40,7 +40,10 @@ class myclass { // constructor function myclass() { - return(true); + // change some properties + $this->var1 = "foo"; + $this->var2 = "bar"; + return true; } }