Simple useful PHP function script.