PHP Function to validate setting

A lot of people clutter their database with integer ids that are not strings.