PHP 8.5.0 Alpha 1 available for testing

Voting

: max(eight, three)?
(Example: nine)

The Note You're Voting On

joyview at gmail dot com
16 years ago
it could be useful if you using nginx instead of apache

<?php
if (!function_exists('getallheaders'))
{
function
getallheaders()
{
$headers = [];
foreach (
$_SERVER as $name => $value)
{
if (
substr($name, 0, 5) == 'HTTP_')
{
$headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
}
}
return
$headers;
}
}
?>

<< Back to user notes page

To Top