hello:
can i have a help for the belows question.
Question1:
may i know how to assign an array value into the session and vice versus retrieve the value from the session and put it back into the array.
for example, assign the array into the session:
$localcart = array("one","two","three");
session_register("cart");
$cart = $localcart;
then i want to retrieve the value from the
session and put it back into the arrray:
session_register("cart");
$localcart = $cart;
is these coding at above got any problem?
Question2:
if i want to check see whether the array value is assign to the session or not, then i try to use :
if (isArray($cart)){
return True;
}
is there got any problem on it ? please do me a favour....
thanks.