[PHP]PHP Syntax Notation

2005-09-27 Thread Lowell Herbert
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 .

Re: [PHP]PHP Syntax Notation

2005-09-27 Thread Larry E. Ullman
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 .

Re: [PHP]PHP Syntax Notation

2005-09-27 Thread Mikey
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/);

Re: [PHP]PHP Syntax Notation

2005-09-27 Thread Lowell Herbert
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

Re: [PHP]PHP Syntax Notation

2005-09-27 Thread Jasper Bryant-Greene
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

Re: [PHP]PHP Syntax Notation

2005-09-27 Thread A.J. Brown
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

Re: [PHP]PHP Syntax Notation

2005-09-27 Thread Lowell Herbert
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

Re: [PHP]PHP Syntax Notation

2005-09-27 Thread Andy Pieters
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