Variable References Demo : Reference : Language Basics PHP Source Code


PHP Source Code » Language Basics » Reference »

 

Variable References Demo




<?php
     $my_foo = "A";
     $my_bar = &$my_foo;
     $my_foo = "B";
   
     print($my_bar);
   
     $my_bar = "C";
     print($my_foo);
?>
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» Reference