Yep, my son used to do this. I honestly can't remember how long it lasted. I agree that it was more of a "look what I can do" than anything else.
We tried to just be aware of it and remind him at each meal to swallow his food. We also swept his cheeks if we thought there was something there. He got the idea after awhile.
Can't remember how long the phase lasted, but it most likely just a phase and nothing to worry about.
ETA - I noticed some of the posts mentioned this being a choking hazard and not something that should be taken lightly. I can't speak for other moms, but I never knowingly let my son do this. I caught him once, and my husband caught him another time. After that we were very vigilant.
This is not something I took lightly. Of course I realize it's a choking hazard. Letting another mom know that her child is doing something normal is not the same thing as saying this is not something that should be corrected. We realize this. Relax, people!