Re: Some CLASS file help, should be a quick answer...

From: Date: Tue, 12 Jul 2005 05:29:13 +0000
Subject: Re: Some CLASS file help, should be a quick answer...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-218505@lists.php.net to get a copy of this message
On Mon, July 11, 2005 4:05 pm, Matt Babineau said: > Ok so I set a variable at the top of my class definition > > var $tmp; > < bunch of functions> > > Function $func1() { You don't really have a $ before the function name, right?... > <do some stuff> > $n = $this->result_from_another_function($var1, $var2, $var3); // > this function returns an ARRAY > //print_r($n); > $this->tmp = $n; //check it here: print_r($this->tmp); > } > > > When I try to set $this->tmp = $n, it doesn't work!? But if I print_r($n) > the array that gets returned by $this->result_from_another_function($var1, > $var2, $var3) gets printed out and I can't understand this!!!!!! There is > plenty of data in $n, but not in $this->tmp!!! All we know so far, from the code that you've posted is: 1. You've done something wrong 2. It's not actually *IN* the code you showed us; it's somewhere else. Throw more code up in pastebin or something. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#218505) next »