Saving Arrays : serialize « Utility Function « PHP






Saving Arrays

 
$array["a"] = "Foo";
    $array["b"] = "Bar";
    $array["c"] = "Baz";

    $str = serialize($array);
    $strenc = urlencode($str);
    print $str . "\n";
    print $strenc . "\n";
  
  








Related examples in the same category

1.Saving Objects
2.Storing and Retrieving Objects
3.Serialization