Quantcast
Channel: PHP8タグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 521

【PHP8.3】 クラス定数とENUMを文字列から探せるようになる

$
0
0
PHPのENUMにはひとつ重大な欠点がありまして、キーを文字列指定することができません。 どういうこと? enum Suit:string{ case Hearts = 'ハート'; case Di…

Viewing all articles
Browse latest Browse all 521

Trending Articles