This site is mobile accessible. Press the "Tap Here" button to use a different font-size.


Smartphone icons created by Freepik - Flaticon

PHP Functions

Function with two Arguments

Hege Refsnes. Born in 1975
Stale Refsnes. Born in 1978
Kai Jim Refsnes. Born in 1983

<?php
// create function with two arguments familyName($fname, $year)
function familyName($fname, $year) {
  echo "$fname Refsnes. Born in $year <br>";
}

// loops through the list of first names
familyName("Hege","1975");
familyName("Stale","1978");
familyName("Kai Jim","1983");
?>