Jump to content

Please help with &


hejgelato

Recommended Posts

I don't believe that $connection =& create_connection(); would work.

 

Look at this example

<?php
   $a = 1;
   $b = $a;

   $a++; //$a is now 2 but $b is still 1
   
   //again... but different
   unset($a,$b);
   $a = 1;
   $b =& $a;

   //now $b represents $a
   $a++; //$a AND $b are now 2
?>

Link to comment
https://forums.phpfreaks.com/topic/99134-please-help-with/#findComment-507209
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.