You are here: Some CLASS file help, should be a quick answer... « PHP « IT news, forums, messages
Some CLASS file help, should be a quick answer...

Posted by "Matt Babineau" on 07/12/05 02:05

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@criticalcode.com
http://www.criticalcode.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация