What are Classes and Methods in OOP PHP


This tutorial is a beginners look at OOP(object oriented programming) in PHP and covers what a class, method and variables are as well as how to instantiate a class and add variables to it. a class in OOP Php A class in php is an object in object oriented programming or OOP, the class defines…

Read More

Add Copyright Symbol and Year Date in PHP

To add a copyright symbol and year date in PHP that updates with the current year, use the code below… &copy; <?php echo date (‘Y’); ?> A HTML entity is used for the copyright symbol, then you have an opening PHP declaration followed by an echo, which is rendering the year using the date function date (‘Y’);, then the…

Read More