It's not just people who love the food in New York City. So do certain ants. 

The most common species of ant found on the pavements of New York City and in cities around the world has a taste for human food - more than other ant species found primarily in parks and other green spaces, a study says.

"The ants that live alongside us in our cities also seem to be those same species that can eat the same food that we do, and do so the most," said Clint Penick, a post-doctoral fellow at North Carolina State University and lead researcher of the study published Wednesday in the scientific journal Proceedings of the Royal Society B.

The researchers gathered up samples of more than 20 species of ants from the sidewalks, medians and parks of Manhattan, and tested them to see how much of a particular carbon isotope was in their bodies. That isotope is linked to corn and sugar cane found in much of what people eat, from meat to junk food. Researchers determined that ants eating more human food would have higher isotope levels.

The ant with the highest levels was the pavement ant, Tetramorium species e, which researchers said is the predominant ant on city sidewalks and medians. Among the samples, ants that were from park areas had lower isotope levels than ants that were taken from street medians.

Eating human food could be an advantage for the pavement ants, allowing them to thrive in areas where their natural diet of dead insects and things might not be so prevalent, Penick said.

"Humans bring a ton of general resources," he said. "The species that can take advantage of these resources the best, sort of wins."

Penick said further research would look into whether the ants have a preference for human food even if their natural food sources are available.