You are here: Re: Class Scope Clarification « All PHP « IT news, forums, messages
Re: Class Scope Clarification

Posted by -Lost on 07/04/06 01:07

"Glen Carlson" <pcgc@blackhole.com> wrote in message
news:12aj8rnjnnts42f@corp.supernews.com...

>I don't seem to grasp the scope of an object. Are objects only visible to the page you
>are on, or are classes global in nature? I can instantiate a class and it will be
>available on one page, but not on any subsequent pages.

A class will be available to the entire page. If it happens to be included into another
page, then it will be available both locally (in the page it is defined) and in the page
that includes it.

-Lost

 

Navigation:

[Reply to this 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

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