shamuntoha Posted October 12, 2008 Share Posted October 12, 2008 Why its not printing? Where could be the wrong? <? $host="localhost"; $solaris = $_SESSION[$host]['one']; // basic parameters $solaris['one']=1; $solaris['two']=2; $solaris['three']=3; $solaris['four']=4; echo $_SESSION['localhost']['one']['three']; ?> Link to comment https://forums.phpfreaks.com/topic/128113-solved-how-can-i-let-it-work/ Share on other sites More sharing options...
genericnumber1 Posted October 12, 2008 Share Posted October 12, 2008 change it to $solaris =& $_SESSION[$host]['one']; You need to make it a reference if you're going to edit the original values. Link to comment https://forums.phpfreaks.com/topic/128113-solved-how-can-i-let-it-work/#findComment-663451 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.