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 instances

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 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

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 anyo

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? Run(); ?>

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? Run(); ?> Run() is a method of the CSite class - you will ne

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? Run(); ?> The $site variable is an object, specifically an instance of the CSite c

[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? Run(); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h