PHP collection of common functions