apache_request_headers() requires php 4.3.0 but does exactly the same thing as getallheaders(), they just changed the name.
I don't think there is a key Content-type in the appache headers as i think this is client side. Let me know if im wrong.
apache_response_headers() is server side which does have Content-type as a key.
try
<?
$moo = apache_response_headers();
foreach($moo as $headers => $value)
{
echo"<b>$headers</b> $value<br />";
}
?>
to echo out the array or
<?
$moo = apache_response_headers();
echo $foo = $moo["Content-Type"];
?>
to echo out the Content-Type.
Note though that apache_response_headers(); is only available on php 4.3.0 so if you get undefined function you probably don't have it loaded.
also note you need the headers in the page eg:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
other wise there will be no Content-Type.