It seems that $zelta is not an array of numbers, but array of arrays. Try to print_r or var_dump it to see what inside.