PHP lookup table
<p>I have a chart in my hand that looks something like the following. It's likely these values will never change.</p>

<pre><code>+----------------------+
|Rating | &gt;=   | &lt;=    |
+----------------------+
| 100   | 0.0  | 0.112 |
|  99   | 0.113| 0.156 |
|  98   | 0.157| 0.201 |
|  97   | 0.202| 0.309 |
| ...   | ...  | ...   |
+----------------------+
</code></pre>

<p>What is the best way to implement a function like <code>get_rating(0.300)</code> in PHP?</p>

<p>Of course I could make a long if/else chain or a switch statement. Not sure if that is the best solution, though.</p>
