[thelist] PHP4 objects and a short introduction
Anthony Baratta
Anthony at Baratta.com
Sat Jul 1 00:29:40 CDT 2006
Jon Molesa wrote:
>
> Would that create the object $myObject each time or does PHP4 realize that
> it has been created previously and just references it? If it does create
> the object each time is that the correct way to use objects? Seems that
> once it has been created my code should just be able to make use of it.
> Similar in nature to session_start() recognizing that a session has
> already been created. Could someone please clear this up for me? Thank
> you and God bless.
Only items stored in the Session Object (and the session object itself)
are persistent between page calls. Every other object created within a
page is create and destroyed within the context of the page.
As soon as the code on a particular page is done, PHP cleans up and
throws it all away.
More information about the thelist
mailing list