# Modern PHP

> Clean Markdown view of GeekNews topic #6245. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=6245](https://news.hada.io/topic?id=6245)
- GeekNews Markdown: [https://news.hada.io/topic/6245.md](https://news.hada.io/topic/6245.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2022-03-29T09:29:53+09:00
- Updated: 2022-03-29T09:29:53+09:00
- Original source: [dnlytras.com](https://dnlytras.com/blog/modern-php/)
- Points: 4
- Comments: 1

## Topic Body

PHP 7 이후에 새로 추가된 기능 중 주목할만한 기능들   
- Array destructuring (v7.1)  
- Spread operator within arrays (v7.4) & (v8.1)  
- Match expressions (v8.0)  
- Enumerations (enums) (v8.1)  
- Arrow functions (v7.4)  
- Named parameters (v8.0)  
- Null coalescing operator (v7.0)  
- Null coalescing assignment operator (v7.4)  
- Null-safe operator (v8.0)  
- Spaceship operator (v7.0)  
- Multi catch exception handling (v7.1)  
- `str_starts_with`, `str_ends_with`, `str_contains` (v8.0)  
- Return Types (v7.0)  
- Union types (v8.0)  
- Null and Void return types (v7.1)  
- Never return type (v8.1)  
- Grouped imports (v7.0)  
- Constructor property promotion (v8.0)  
- WeakMaps (v8.0)

## Comments



### Comment 9407

- Author: xguru
- Created: 2022-03-29T09:31:04+09:00
- Points: 2

[PHP in 2022](https://news.hada.io/topic?id=5739)  
[Modern PHP 살펴보기](https://news.hada.io/topic?id=2027)
