Set of useful simple PHP functions