PHP: Hypertext Preprocessor

echo 'Hello, World!';            
function greeting($name) {
    return "Hello {$name}, nice to meet you!";
}

$greet_john = greeting('John');
echo $greet_john;            
$names = ['John', 'Paul', 'Ringo', 'George'];

foreach ($names as $name) {
    echo "Hello {$name}!";
}
            
function greet_musician($n, $i) {
    return "Hi {$n}, play the {$i} for me!";
}

$band = [
    'John' => 'guitar',
    'Paul' => 'bass',
    'Ringo' => 'drums',
    'George' => 'guitar'
];

foreach ($band as $name => $instrument) {
    echo greet_musician($name, $instrument);
}