столкнулся с такой проблемой:

Код:
$name='smth'; //к примеру
$score='123'; //к примеру
while(list(,$user)=each($arr)){
list($nameTmp,$scoreTmp)=split("\t",$user);
if($name == $nameTmp){
$found='yes';
$scoreTmp=rtrim($scoreTmp);
$scoreTmp+=$score;
$user="$nameTmp\t$scoreTmp\n";
break;
};
};
по моему замыслу при совпадающем имени к scoreTmp добавляется score и суется обратно в массив $arr, однако ничего не происходит

массив остается без изменения. foreach, очевидно не поможет, т.к. в мануале написано, что : note that foreach operates on a copy of the specified array, not the array itself, therefore the array pointer is not modified as with the each() construct and changes to the array element returned are not reflected in the original array.
Имя $name в массиве есть точно.