Is it possible to implement pointers (links) to data in php?
<?php session_start(); function foo(&$boo){ $_SESSION['boo']=$boo; } $boo=1; foo($boo); $boo=2; var_dump($boo); // int(2) var_dump($_SESSION['boo']); // int(1) ?>
In this case, the value is written to the session, not the pointer.