RE: [PHP] class question 2

From: Date: Wed, 27 Mar 2002 22:13:36 +0000
Subject: RE: [PHP] class question 2
Groups: php.general 
Request: Send a blank email to php-general+get-90440@lists.php.net to get a copy of this message
once their instantiated, they're just like any other variable - that is: if a "normal" variable, declared in the same place as the object, is accessable in another function, then the object will be too. HTH Martin -----Original Message----- From: Caspar Kennerdale [mailto:caspar@thetuckshop.com] Sent: Thursday, March 28, 2002 1:17 PM To: Php-General-List (E-mail) Subject: [PHP] class question 2 Sorry Another question- Do instances of classes remain in 'communication' with each other if declared my different functions in a case switch statement. At present I have an admin.php which is one long swtich statement. Wihin each is a list iof functions which created the elements of the page Each of these functions are defined in anither file and are instances of classes. If I create an instance of a DB class for exapmle- can I refer to it thoughout the visit to the website- ie does it maintaoin its values and variables even if different functions freom the main index.php page are called sorry if this is really confusing any ideas much appreciated -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#90440) next »