代码简洁 摘自 laravel china~ in_array

优化后的代码:

待优化代码:

优化后的代码:

https://laravel-china.org/topics/7774/the-conciseness-of-the-php-code-php-clean-code