Question: PHP 7: Project 1: Create a PHP program with a class (Student) with the following properties: student_id, student_name, student_address, student_state, student_zip, and student_age . The
PHP 7:
Project 1:
Create a PHP program with a class (Student) with the following properties:
student_id, student_name, student_address, student_state, student_zip, and student_age. The program includes get and set methods for each property. Validate the proper type and size of data passed into each property. The program also includes the ability for each property to use the constructor to set values. Create an instance of the class passing properties through the constructor. Change two of the properties using set methods. Display the properties using get methods.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
