Class

A class is used to specify the form of an object and it combines data representation and methods for manipulating that data into one neat package. The data and functions within a class are called members of the class.

Example

<?php
class a{
function function_a(){
echo “Function A”;
}
}

a::function_a();
?>