Hi Gabriel

 

> This doesn't look like it can do fallbacks which are traditional feature of 
> switch statements, can it?

 

You can take a look at the tests to get a feel for what it’s like:

https://github.com/php/php-src/pull/5308/files

 

Multiple conditions are possible:

 

```

return $day switch {

    1, 7 => false,

    2, 3, 4, 5, 6 => true,

};

```

 

Regards

 

Reply via email to