Reply to Re: [PHP]PHP Syntax Notation

Your name:

Reply:


Posted by Lowell Herbert on 09/27/05 22:58

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
>>
>> //define("PB_CRYPT_LINKS" , 1);
>> define("_LIBPATH","./lib/");
>> require_once _LIBPATH . "site.php";
>>
>> $site = new CSite("./site.xml",true);
>> $site->Run();
>>
>> ?>
>>
>
> Run() is a method of the CSite class - you will need to look in the
> defination of that class to find out what it does,
>
> Mikey
>

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

Thanks in advance,
Lowell

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация