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

Posted by "Richard Lynch" on 07/12/05 08:29

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

 

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

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