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?
?php
//define(PB_CRYPT_LINKS , 1);
define(_LIBPATH,./lib/);
require_once _LIBPATH .
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?
?php
//define(PB_CRYPT_LINKS , 1);
define(_LIBPATH,./lib/);
require_once _LIBPATH .
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?
?php
//define(PB_CRYPT_LINKS , 1);
define(_LIBPATH,./lib/);
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?
?php
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
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 an
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
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
8 matches
Mail list logo