or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
要起飛了!快速了解 PHP 8 大進化
講者:周建毅 Miles Chou
歡迎來到 LaravelConf Taiwan 2020 共筆
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →共筆入口:https://hackmd.io/@LaravelTaiwan/Conf2020
手機版請點選上方 按鈕展開議程列表。
大綱
5 年前發布的 PHP 7 做了非常多改變,同時讓我們開始對 PHP 有不一樣的看法。5 年後的今天,PHP 8 也即將要發布了,它將會帶來什麼驚喜,就讓我們一起來看看吧!
議程筆記
開始之前
效能提升
什麼是 JIT?
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →WeakMaps
語法擴充
Match Expression
Constructor Property Promotion
Attributes
從 PHPDOC 改成語法直接 tag
Allow ::class on object
$object::class
non-capturing catches
強型別
Mixed type
Union types
Static return type
用 static 表示 return self
Add stringable interface
嚴格 code
Consistent type errors for internal functions
Stricter type checks
內建套件
get_debug_type v.s. gettype()
新增 str_* 函式
Built0in extension / class 調整
PHP 的未來
Pattern match
Pipe operator
Conditional return
Partial function application