Some utility functions for common PHP tasks.