Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2015
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. var eru = [
  2. [" 12 July-20 July 2015",18]
  3. ];
  4.  
  5. $intervallo= " 10 July-16 July 2015"
  6. $numvulc= 25;
  7. $aggiornamento= array($intervallo,$numvulc);
  8.  
  9. $fileeru= "out/eru.js";
  10. $json = json_decode(file_get_contents($fileeru), true);
  11.  
  12. // how many arrays there are into multidimensional array **eru**
  13. $counteru= count($eru);
  14.  
  15. //maybe here there's problem
  16.  
  17. if($eru[$counteru] != $aggiornamento){
  18. $eruzioni[]= $aggiornamento;
  19. }
  20.  
  21. $eru= json_encode($eru);
  22. $eru= 'var eru= '.$eru.';';
  23. file_put_contents($fileeru,$eru);
  24.  
  25. var eruzioni = [
  26. [" 12 July-20 July 2015",18],
  27. [" 10 July-16 July 2015",25]
  28. ];
  29.  
  30. var eruzioni = [
  31. [" 10 July-16 July 2015",25]
  32. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement