<?php $x = new stdClass; $x->a = 1; $_SESSION['x'] = $x; function smth() { $x = $_SESSION['x']; return $x; } print_r($x); $y = smth(); $y->y = 'A'; print_R($x);
You have javascript disabled. You will not be able to edit any code.