PHP COURSE • LESSON 37
PHP Classes
A class is a blueprint for creating objects.
class.php
<?php
class Student{
public $name;
function show(){
echo $this->name;
}
}
?>
/* PASTE YOUR PROVIDED EDUHUB CSS HERE */
A class is a blueprint for creating objects.
<?php
class Student{
public $name;
function show(){
echo $this->name;
}
}
?>