title: Parsing HTTP_RANGE header in PHP
body: <p>Is there an existing way to parse the <code>HTTP_RANGE</code> header correctly in PHP? Thought I'd ask here before re-inventing the wheel.</p>
  
  <p>I am currently using</p>
  
  <pre><code>preg_match('/bytes=(\d+)-(\d+)/', $_SERVER['HTTP_RANGE'], $matches);
  </code></pre>
  
  <p>to parse the header but that does not cover all possible values of the header so I am wondering if there is a function or library that can do this already?</p>
  
  <p>Thanks in advance.</p>