#!/usr/bin/env php
<?php
const GREETING = 'hi';

function label($name = 'Ada', int $mode = 1) {
    switch ($mode) {
        case 1:
            return GREETING . ' ' . $name . "\n";
        default:
            return "other\n";
    }
}

echo label();
echo label('Cara');
echo label('Bob', 2);
