An important, urgent question about classes?

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: An important, urgent question about classes?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-80523@lists.php.net to get a copy of this message
Hi all, I need to learn something about classes in PHP, that I could not understand what's going on really!? For the following sample, what kind of class i need to create? how can i use? For example, I have X students X: from 1 to infinity... With respect to student ID of them, And for each students, I have name,surname,addr,phone,email .... etc.. informations of them.... I want to create a class, such that, i can input info of students, for each student. And for example, when I did this for 10 students, I want to register with "session_register" and add/remove/change registered informarmations. I tried to do, but I could not understand the uses of classes clearly, so I could not do... Thus soem body write me small code which includes a sample class and adding/changing/deleting records for one student inside. Can I register a valuable which is a class? $mydata = new Students(); session_register("mydata"); ? is possible? Do we have any restriction about registering a variable with respect to its type? thanx... best regards...

« previous php.general (#80523) next »