[nycphp-talk] multiple object instantiations in a single script
Joseph Crawford
codebowl at gmail.com
Sat Oct 9 14:59:15 EDT 2004
> what happens if the script calls doSomething a second time before $obj
> is done. Am I in some danger of overwriting $obj before I'm through
> using the previous instance?
> if not, Is the same true if the instantiation happens outside of a
> function?
not at all when you create a new instance it is just that a new
instance if you do
$obj1 = new user();
$obj2 = new user();
they have nothing to do with eachother except that they are of type User
--
Joseph Crawford Jr.
Codebowl Solutions
codebowl at gmail.com
802-558-5247
For a GMail account
contact me OFF-LIST
More information about the talk
mailing list