We had a wrought iron gate built a few years ago and when the builders left, one of our dogs stuck his head through and couldn't back out. We heard him barking every once in a while so we checked and everything seemed fine from where we were looking.
He started crying a couple hours later and that's when I found him stuck. Poor guy. Liquid soap and a gentle pull was all it took.