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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok so I set a variable at the top of my class definition

var $tmp;
< bunch of functions>

Function $func1() {
	<do some stuff>
	$n = $this->result_from_another_function($var1, $var2, $var3); //
this function returns an ARRAY
	//print_r($n);
	$this->tmp = $n;
}


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!!!

I've read a couple tutorials but none explain this very well....anyone have
any thoughts?


Thanks,

Matt Babineau
Criticalcode
858.733.0160
matt@xxxxxxxxxxxxxxxx
http://www.criticalcode.com
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux