Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
dvprog_12 [2013-04-15 14:17] Daniel Viström |
dvprog_12 [2015-09-10 08:49] 127.0.0.1 external edit |
||
---|---|---|---|
Line 4: | Line 4: | ||
<?php | <?php | ||
- | function thousands($tal = 1) { // Defaultvärde kan anges. | + | // Defaultvärde kan anges för en parameter. |
+ | // Det används om inget annat skickas till funktionen. | ||
+ | function thousands($tal = 1) { | ||
return $tal*1000; | return $tal*1000; | ||
} | } |