10 lines
176 B
PHP
10 lines
176 B
PHP
<?php
|
|
|
|
function gethttpcode(&$headers) {
|
|
if (is_array($headers) && preg_match('#^\S+ (\d+) \S+.*$#',$headers[0],$matches)===1)
|
|
return $matches[1]+0;
|
|
else
|
|
return 0;
|
|
}
|
|
|
|
?>
|