PHP Function to validate setting

It’s all right. Mysql uses loose typing and thus will gladly cast your string to int. No big deal.