@Fungirlmmm: Yep most pigs can learn a new trick in one to 2 days depending on age and complexity .
Pigs have long been considered to be smarter than dogs. Ironically, it is also one of the cleanest animals around. A pig will refuse to defecate anywhere near the area where he lives and eats when he is given a choice. You can train a pig just like a dog or cat, but what makes their intelligence remarkable is the complex social lives that behaviorists once believed to be the purview of primates. Mother pigs have been found to sing to their piglets while they are nursing. They excel at video games that would be hard for a young child, and sometimes better than the primates.
Also, like primates and other smart animals, they learn from watching one another, often working to outsmart each other. One pig will often follow another pig to food before grabbing it away from him, and the pig who was tricked will change behaviors to reduce how many times it is tricked.