Hi
As a complement to the answers you have had here I wish to ammend the
following.
The Run in the example is a function, and because this function is inside a
Class object, it is called a method.
A class is a set of variables (properties) and functions (methods) that you
can create instances
On Sep 27, 2005, at 4:19 PM, Jasper Bryant-Greene wrote:
Lowell Herbert wrote:
Thanks for all the responses. I understand that $site is an
instance of the class CSite, and that Run() is a function in that
class. I do not understand what the operater "->" means, and
what meaning the
Lowell,
The "->" operator was taken from the pointer operator in C. It's used to
access a method or variable within an INSTANCE of an object, as opposed to
the "::" operator, which is used to access a static method of a class. Note
the difference between a class and an object -- an object is
Lowell Herbert wrote:
Thanks for all the responses. I understand that $site is an instance
of the class CSite, and that Run() is a function in that class. I do
not understand what the operater "->" means, and what meaning the
result of the function Run() has to $site. Clarification anyo
On Sep 27, 2005, at 2:16 PM, Mikey wrote:
Lowell Herbert wrote:
I'm trying to expand my understanding of PHP by looking at some
pre- built code modules. I don't fully understand the syntax
"$site->Run ();" in the following code. Can someone offer a
helpful explanation?
Run();
?>
Lowell Herbert wrote:
I'm trying to expand my understanding of PHP by looking at some pre-
built code modules. I don't fully understand the syntax "$site->Run
();" in the following code. Can someone offer a helpful explanation?
Run();
?>
Run() is a method of the CSite class - you will ne
I'm trying to expand my understanding of PHP by looking at some pre-
built code modules. I don't fully understand the syntax "$site->Run
();" in the following code. Can someone offer a helpful explanation?
Run();
?>
The $site variable is an object, specifically an instance of the
CSite c
I'm trying to expand my understanding of PHP by looking at some pre-
built code modules. I don't fully understand the syntax "$site->Run
();" in the following code. Can someone offer a helpful explanation?
Run();
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
8 matches
Mail list logo