Jump to content

var_dump() SOLVED with thanks in the final post


niche

Recommended Posts

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

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

decided on: $text = print_r($_SESSION,true); Thank-you for your help boen_robot.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...