OOP is considered good as it helps with organization of large projects, data (and method) encapsulation, and abstraction. Functions are good of course, but in using objects, code can become more modular. It's a cool concept that I'm not doing justice too in this explanation. You really should look into it a good deal more as understanding it will help you on a multitude of levels.
As for ....
Can classes be started on one page eg $user = new class();
on one page and then on the next page somethinglike $user = resume class(); ?
.... I think you want to take a look at serialization. However, if there is not much data to be moved from one page to the next, just stick it in a hidden field. Otherwise, store it in a db, session, or file, and instantiate the new object with the data. You can prolly guess that I don't serialize objects.
Lastly, the "&" is used to denote "by reference". You should check it out in the manual. But here is a short example.
Code: Select all
# Example 1
$Sarge = $Grunt;
// This will copy $Sarge to $Grunt so you then have to variables.
# Example 2
$Sarge = &$Grunt;
/*
This will make $Grunt "refer" or "point" to $Sarge as opposed to making a copy. You then have two vars (with different names of course) pointing or referring to the same place in memory. If you make a change to $Grunt, it also changes $Sarge, and vice versa.
*/
Hope that helps.....
Big Din K.R.