View sourcecode

The following files exists in this folder. Click to view.

functions.php

18 lines UTF-8 Unix (LF)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
    
function person(){
        echo 
"<p>Jag heter Leonid Bilhöfer Maksinen och jag går i klass 23TEa</p>";
    }

    function 
cirkel($r){
        echo 
"<p>Radie = $r --> Omkrets = ".(number_format($r*2*M_PI2)).", Area = ".(number_format($r**2*M_PI2))."</p>";
    }

    function 
omkrets($radie){
    
$omkrets $radie*2*M_PI;
    return 
$omkrets;
    }
    function 
area($radie){
        
$area $radie**2*M_PI;
        return 
$area;
    }
?>