可否根据下面的两个数组来判断趋势

WBOY
Release: 2016-06-13 12:36:08
Original
928 people have browsed it

能否根据下面的两个数组来判断趋势?

      <br />
               $old_rank = array(<br />
			"1"=>array('uid'=>132,'use_score'=>61570),<br />
			"2"=>array('uid'=>121,'use_score'=>50932),<br />
			"3"=>array('uid'=>145,'use_score'=>46789),<br />
			"4"=>array('uid'=>100,'use_score'=>39089),<br />
			"5"=>array('uid'=>167,'use_score'=>29089)<br />
		);<br />
		$new_rank = array(<br />
			"1"=>array('uid'=>132,'use_score'=>61570),<br />
			"2"=>array('uid'=>145,'use_score'=>51932),<br />
			"3"=>array('uid'=>121,'use_score'=>50932),<br />
			"4"=>array('uid'=>167,'use_score'=>40089),<br />
			"5"=>array('uid'=>100,'use_score'=>39089)<br />
		);<br />
Copy after login

这样的两个数组,怎么进行比对得出排名的趋势,比如用户145排名上升一位了,121排名下降一位了,132排名保持不变。
php

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template