niche Posted March 22, 2012 Share Posted March 22, 2012 why does the data in $text resist my <h6>? I think it has something to do with the data coming from a vardump(), but I'm at a loss after that. $text = var_dump($_SESSION);echo '<h6>' . $text . '</h6>'; Link to comment Share on other sites More sharing options...
boen_robot Posted March 22, 2012 Share Posted March 22, 2012 Looking at var_dump()'s manual page, it doesn't return any data (that's what "void" means), so $text is never given any value.The given data is "dumped" i.e. outputted on screen, rather than being returned for further processing (which includes it being assigned to a variable). See the "tip" also. Link to comment Share on other sites More sharing options...
niche Posted March 23, 2012 Author Share Posted March 23, 2012 decided on: $text = print_r($_SESSION,true); Thank-you for your help boen_robot. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.