get the requested version of http from response in PHP
<p>I'd like to be able to determine whether my PHP script was called from HTTP 1.0 or HTTP 1.1 (or maybe some newer version if one ever comes out).</p>

<p>As in, the following code:</p>

<pre><code>&lt;?php
    $ver = /*???*/;
    echo 'You requested me with HTTP ' . $ver;
</code></pre>

<p>should echo out <code>You requested me with HTTP 1.0</code> or <code>You requested me with HTTP 1.1</code>.</p>

<p>What is the fastest way to do this?</p>

<hr>

<p>(Yes, I know this a bit silly---most things these days are HTTP 1.1, but I worry about that one <code>curl</code> client.)</p>
