fork download
  1. public function addToCase($id, $q) {
  2.  
  3. if(!isset($_COOKIE["case"])) {
  4. $case["odrerid"] = uniqid();
  5. $case[$id] = $q;
  6. $case=serialize($case);
  7. setcookie("case", $case);
  8. }
  9. else {
  10. $case = unserialize($_COOKIE["case"]);
  11. $case[$id] = $q;
  12. $case=serialize($case);
  13. setcookie("case", $case);
  14.  
  15. }}
Success #stdin #stdout 0.02s 24448KB
stdin
Standard input is empty
stdout
public function addToCase($id, $q) {

 if(!isset($_COOKIE["case"])) {
     $case["odrerid"] = uniqid();
     $case[$id] = $q;
     $case=serialize($case);
     setcookie("case", $case);
    }
  else {
  $case = unserialize($_COOKIE["case"]);
  $case[$id] = $q;
  $case=serialize($case);
  setcookie("case", $case);
   
 }}