Webbserverprogrammering 1

Show sourcecode

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

webbserverprogrammering/exercises/funktioner/

funktioner.php
funktioner2.php
funktioner3.php
funktioner4.php
funktioner5.php
funktioner6.php
funktioner7.php
funktioner8.php
funktioner9.php

funktioner4.php

22 lines UTF-8 Windows (CRLF)
<!DOCTYPE html>
<html lang="en">
<head>
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <title>Funktioner 3</title>
</head>
<body>
<?php
 
function skrivUt($a$b$c$storlek=2){
  if (
$storlek!=2) {
   
$storlek 0;
  }
  
$numbers = array($a$b$c);
  
sort($numbers);
  return 
$numbers[$storlek];
 }
 
$störst skrivUt(536);
 echo 
$störst;
?>
</body>
</html>