The best joke at the Edinburgh Fringe has been named as a vegetable pun that beat the comic competition.

Festival veteran Olaf Falafel claimed the coveted honour of Dave's Funniest Joke At The Fringe.

The comic said that the annual event was painful "like pregnancy", but he nevertheless returned for a seventh year and delivered what has been judged the best gag.

Swedish comedian Falafel has previously come close to clinching the winning joke, but this year's effort sealed victory.

His winning joke is: "I keep randomly shouting out 'broccoli' and 'cauliflower' - I think I might have florets."

The vegetable pun was deemed the best gag by 2,000 voting members of the public, after being shortlisted by an expert panel.

It saw off competition from jokes about nepotism, anti-depressants, Brexit, and cowboys.

Falafel is delighted his niche culinary one-liner has won the prize.

He said: "It's been really good fun, I would definitely say that winning this award has been a highlight, and just being able to make people laugh with my stupid jokes."

The comedian and children's book author has been returning to the Fringe for seven years, despite the pain he feels each time.

He said: "I think this is my seventh year at the Fringe, it's like pregnancy - you go through a lot of pain and then the child is born and enough time passes and you forget about the pain and decide that you fancy having another one, but straight after you're like 'I'm never doing that again'."

Falafel has said that his rise from consideration with past jokes to claiming the coveted prize mirrors the success of his beloved Luton Town.

He said: "It's like going from non-league to the Championship in a few seasons."

The top jokes at this year's festival:

1. I keep randomly shouting out 'broccoli' and 'cauliflower' - I think I might have florets. (Olaf Falafel)

2. Someone stole my antidepressants. Whoever they are, I hope they're happy. (Richard Stott)

3. What's driving Brexit? From here it looks like it's probably the Duke of Edinburgh. (Milton Jones)

4. A cowboy asked me if I could help him round up 18 cows. I said, 'Yes, of course. That's 20 cows'. (Jake Lambert)

5. A thesaurus is great. There's no other word for it. (Ross Smith)

6. Sleep is my favourite thing in the world. It's the reason I get up in the morning. (Ross Smith)

7. I accidentally booked myself onto an escapology course; I'm really struggling to get out of it. (Adele Cliff)

8. After learning six hours of basic semaphore, I was flagging. (Richard Pulsford)

9. To be or not to be a horse rider, that is equestrian. (Mark Simmons)

10. I've got an Eton-themed Advent calendar, where all the doors are opened for me by my dad's contacts. (Ivo Graham)