jigoshop/jigoshop — comment on commit 4a858f9c711c293624719eb1600dfb074356847e
File:  line 0
By loxK:

I use to use the bellow function for this purpose. I dunno which one is the best I just put it here for reference _if_ we have an issue with yours one day:

https://gist.github.com/1336659