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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php