Some useful functions for any php application

data validation