Php Foreach Array Change Values In Dictionary