DansTonCode.net
quote.smartness() == 42Don’t worry if it doesn't work right. If everything did, you'd be out of a job.@author Mosher’s Law of Software Engineering
Quote #81
php
@
author 
Anaeria
0
<?
function affSurface($surface)
{
    $retour="";
    if($surface!="")
    {
        if($surface<100)
        {
            $retour=$surface." m²";
        }
        elseif($surface==100)
        {
            $retour="1 are";
        }
        else
        {
            $retour=($surface/100)." ares";
        }
    }
    return($retour);
}
?>
Code source n°81
Code-source en php proposé par Anaeria
 
 0