A SPANISH lottery player nearly lost nine million euros ($11.77 million) in winnings after tossing tickets in the rubbish only to later discover they were winners, according to Spanish media reports.

Ignacio Gonzalez, a lottery ticket vendor in the country's northern Basque Country, was stunned to discover that the number he had played along with 14 friends had come up in a charity draw run by a Spanish organisation for the blind, ONCE.

Mr Gonzalez's euphoria quickly turned to despair, however, when he could not find the winning tickets.

"The New Year was off to a very good start, with a shower of millions, but on the other hand I couldn't find the tickets," Mr Gonzalez told Basque radio station Radio Euskadi.

After a desperate search of his home and with hope running out, Mr Gonzalez ran out to his neighbourhood rubbish dumpster.

"Without thinking about it for two seconds and in front of stunned passers-by, he dumped over the container" and began rifling through its contents, newspaper ABC wrote in an account of the incident.

Mixed in with the dumpster, Mr Gonzalez finally found the winning tickets, no worse for wear.

He and his friends collected a little more than 600,000 euros (about $780,000) each in winnings.