1// PHP 8.0 2match (string $method) { 3 'GET' => $method = 'GET', 4 'POST' => $method = 'POST', 5 default => throw new Exception( 6 message: "$method is not supported yet.", 7 ), 8};
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter