Re: Returning values from function

From: Date: Fri, 12 Jul 2002 19:55:18 +0000
Subject: Re: Returning values from function
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-14740@lists.php.net to get a copy of this message
Do it the opposite way... don't use "&" when passing vars to functions, but do use it when receiving values in functions: <? function test (&$value) { $value = "Hey"; } test($x); print $x; ?> -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Thomas Weidner" <Thomas_Weidner@hotmail.com> wrote in message news:20020709105240.90855.qmail@pb1.pair.com... > Hy... > > How can I get back an reference value from an function. > I call an COM-function witch is described as followed : > > int GetCount(Value 1, Value 2, return Value 3) > > Well... 'till now it look like this > > $obj = new COM("comobject"); > $count = -1; > $error = -1; > $error = $obj -> GetCount(1,1,&$count); > > I get back the int value ob GetCount, thats OK. > But how can I get back Value 3 ??? > > Help would be appreciated... > > Thanks > Thomas Weidner > >

« previous php.windows (#14740) next »