php_guest Posted September 24, 2009 Share Posted September 24, 2009 I am using $_SESSION[X][Y]="test"; The problem is that echo $_SESSION[X][Y]; displays only t and not test. Everytime I use multidimensional I get only first character. Why that, how to get entire string? tnx Link to comment https://forums.phpfreaks.com/topic/175337-multidimensional-array-session/ Share on other sites More sharing options...
Garethp Posted September 24, 2009 Share Posted September 24, 2009 You should show us some code that isn't working for you, because it works perfectly for me <?php session_start(); $_SESSION['X']['Y'] = "This works"; echo $_SESSION['X']['Y']; ?> Link to comment https://forums.phpfreaks.com/topic/175337-multidimensional-array-session/#findComment-924018 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.