I am not an expert at PHP and have been learning it through questions,
books, online help, etc.... I guess like most people. :) Anyway, I see a
lot of scripts that use $this->something and was wondering if this was just
another variable or if the "->" has any special meaning. One script from
the PHPLIB (menu.inc) has this:
$this->setup();
and there are no other times in that .inc file that lists that. The only
other thing that comes close is just the "funtion setup()". This is not
the only program that I see this in and am just wondering about it and
trying to see if it is something that I should be using in my scripts. The
only time that I use this is when getting results from a mysql query like this:
$result=mysql_query("SELECT $team from games where game_id = '$game_id'");
while (($row = mysql_fetch_object($result))){
$input = $row->$team;
Hopefully somebody can explain this to me.
Thanks in Advance
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php