Page 2 of 2

Posted: Wed Feb 07, 2007 8:02 pm
by superdezign
You are treating the value returned from unserialize() as an array, correct?

Posted: Wed Feb 07, 2007 8:07 pm
by rpgfan
Nevermind! I have it!

Posted: Wed Feb 07, 2007 8:11 pm
by superdezign
Well, serialize() takes mixed variables, so you should expect unserialize to return mixed variables. Thus, it's not a simple string. If you just want to look at it, don't echo, use print_r().

EDIT: Congrats.

Posted: Wed Feb 07, 2007 10:40 pm
by rpgfan
Thanks for all of your guy's help. And whats the difference print_r() and echo()?

Posted: Wed Feb 07, 2007 10:45 pm
by RobertGonzalez
echo() and print() are similar, except that print() and echo() are a language constructs. print_r() and var_dump() are along the same lines of similarity, but both are functions.

Posted: Wed Feb 07, 2007 10:47 pm
by rpgfan
oooohhhhhhkkkkaaaayyyyy...................