Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
prog1_05 [2017-10-02 10:24]
Daniel Viström
prog1_05 [2018-10-05 16:05] (current)
Daniel Viström
Line 5: Line 5:
 Tips! Använd en array. Tips! Använd en array.
 <code php> <code php>
-$month_days = array (31,​28,​31,​30,​...);+$month_days = [31,​28,​31,​30,​...];
 </​code>​ </​code>​
  
Line 12: Line 12:
 Tips! Använd arrayer. Tips! Använd arrayer.
 <code php> <code php>
-$month_days = array (31,​28,​31,​30,​...)+$month_days = [31,​28,​31,​30,​...]
-$months = array ('​Januari', ​ '​Februari',​ '​Mars',​ ...);+$months = ['​Januari', ​ '​Februari',​ '​Mars',​ ...];
 </​code>​ </​code>​