function foo(bool $x, int $n, string $y) { if ($x) { $y = tuple($n); } else { $y = tuple($y); echo $y[0]; } return $y[0]; }
<?php function tuple($x) { echo "Inside tuple\n"; } class C { public function tuple($x) { echo "Inside C::tuple\n"; } } class D { public static function tuple($x) { echo "Inside D::tuple\n"; } } tuple(5); (new C())->tuple(6); D::tuple(7);
function c() { return tuple(1, 2); }