Hi I have a 7 page survey that people are taking and I am storing the anwsers in session vars using session_register. After all the pages are filled out I am going to print all of the session vars to the screen for testing purposes, when I did this using
$test = session_encode();
echo $test;
I get
ID|s:8:"23423424";learningobjectives|s:1:"5";overall|s:1:"5";worklife|s:1:"5";courseobjectives1|s:1:"5";styleofworkbook|s:1:"5
What I would like to know is what are the |s:8: and |s:1: why are these entered into my sessions, I would expect sessions to store data so that I could explode it into an array for easy input into a database. Why does PHP do this?
Thanks
Damian Gibbs