Dopełnienie zerami z przodu: str_pad, match

$next_nb = str_pad((string) $next, 2, '0', STR_PAD_LEFT);

return match($type) { 'g' => 'Gotówka', default => 'Przelew' };
return match(mb_strtolower($method)) {
  'gotówka', 'gotowka', 'cash', 'g' => 'g',
   default => 'p',
};
$age = 18;

$output = match (true) {
    $age < 2 => "Baby",
    $age < 13 => "Child",
    $age <= 19 => "Teenager",
    $age >= 40 => "Old adult",
    $age > 19 => "Young adult",
};