What is a reference assignment in PHP?


A reference assignment in PHP in respect of variables is when a variable references another variable. So for example 2 variables… $a = ‘red’; $b = ‘blue’; echo $a . ‘<br>’; echo $b . ‘<br>’; The first echo output will produce ‘red’ and ‘blue’ Now change $b to reference $a $b =& $a; echo $a…

Read More

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