0
当重复在URL找到我想:找到阵副本,添加到原来的,然后删除
- 采取“分数”,并把它添加到原
- 采取“引擎”字符串其追加到原来的
- 然后删除整个重复条目
array 0 => array 'url' => string 'http://blahhotel.com/' 'score' => int 1 'engine' => string 'cheese' 1 => array 'url' => string 'http://www.blahdvd.com/' 'score' => int 2 'engine' => string 'cheese' 2 => array 'url' => string 'http://blahhotel.com/' 'score' => int 1 'engine' => string 'pie' 3 => array 'url' => string 'http://dictionary.reference.com/browse/blah' 'score' => int 2 'engine' => string 'pie' 4 => array 'url' => string 'http://dictionary.reference.com/browse/blah' 'score' => int 1 'engine' => string 'apples'
它应该是这样的结尾:
array 0 => array 'url' => string 'http://blahhotel.com/' 'score' => int 2 'engine' => string 'cheese, pie' 1 => array 'url' => string 'http://www.blahdvd.com/' 'score' => int 2 'engine' => string 'cheese' 3 => array 'url' => string 'http://dictionary.reference.com/browse/blah' 'score' => int 3 'engine' => string 'pie, apples'
这是太辛苦了。 – hjpotter92 2012-07-16 17:48:39
试图什么也没做,失败了? – alfasin 2012-07-16 17:53:03
我一直在工作几个小时。我将包含我的代码片段,但它可能没有帮助。我会随着我的进展保持最新状态。没有必要是sn。。谢谢。 – flux 2012-07-16 17:55:40