从itunes app链接中检索id的最佳方法是什么?
让我说我有这些链接:
http://itunes.apple.com/us/app/bring-me-sandwiches!!/id457603026?mt=8
http://itunes.apple.com/us/app/bring-me-sandwiches!!/id457603026
我只想使用php preg_match获取id,457603026
+------------+---------+
| Column1 | Column2|
+------------+---------+
| 25 | 5 |
| 30 | 5 |
| 35 | 5 |
| 40 | 5.5 |
| 45 | 5.5 |
| 100 | 6 |
+------------+---------+
Run Code Online (Sandbox Code Playgroud)
假设我有上面的表格.
我想根据Column1范围内的数字得到Column2值.
例如:如果输入24或更少,如果我的输入是30或32则返回5,如果我的输入是57,则返回5,如果输入110则返回5.5,返回6
我应该运行什么SQL来获取值?