Güncel Dizi Çıkışı:
[0] => Array
(
[id] => 165 <-- first occurrence
[score] => 3.813 <-- first value
)
[1] => Array
(
[id] => 167
[score] => 3.772
)
[2] => Array
(
[id] => 165 <-- second
[score] => 4.421 <-- second value
)
Bazı php fonksiyonundan sonra istenilen Güncel Dizisinin Çıktı:
[0] => Array
(
[id] => 165 <-- update this key
[score] => 8.234 <-- with $ary[0][score] + $ary[2][score]
)
[1] => Array
(
[id] => 167
[score] => 3.772
)
Id anahtar güncellendi beri biz $ary[2][id]
ve $ary[2][score]
gerekir, bu yüzden çıkarmayın.
Is there a magical function? or Should we write a special function to make this happen? Thanks!