Code has been added to clipboard!
Declaring PHP Class
Example
<?php
class Book {
function page() {
$this->pageNumber = '2';
}
}
// create an object
$book = new Book();
// show object properties
echo $book->pageNumber;
?>