Yngvarr

Generation

generate functionWed, 08 Feb 2023

$_SERVER get code status

<?php function get_status($code) { switch ($code) { case 400: return "Bad Request"; case 403: return "Forbidden"; case 404: return "Not Found"; case 500: return "Internal Server Error"; case 503: return "Service Unavailable"; } } get_status(403); ?>

Questions about programming?Chat with your personal AI assistant