<?php session_start(); function foo() { $t = '_SESSION'; $a = $$t; // not work $b = ${'_SESSION'}; // works var_dump($a, $b); } foo();
You have javascript disabled. You will not be able to edit any code.