To be able to pass a variable by reference, we use an ampersand in front of it, as follows $var1 = &$var2 Post navigation How is a constant defined in a PHP script? Will a comparison of an integer 15 and a string “18” work in PHP?