Question: You know how PHP's `isset()` can accept multiple (no limit either) arguments?

Like I can do:

```
isset($var1,$var2,$var3,$var4,$var5,$var6,$var7,$var8,$var9,$var10,$var11);
//etc etc

```

How would I be able to do that in my own function? How would I be able to work with infinity arguments passed?

How do they do it?

Answer: 
Starting with PHP 5.6 you can use the token "**...**"

Example:

```
<?php
function sum(...$numbers) {
    $acc = 0;
    foreach ($numbers as $n) {
        $acc += $n;
    }
    return $acc;
}

echo sum(1, 2, 3, 4);
?>

```

Source:
<http://php.net/manual/en/functions.arguments.php#functions.variable-arg-list>
Calling `[func\_get\_args()](http://php.net/manual/en/function.func-get-args.php)` inside of your function will return an array of the arguments passed to PHP.