Basic PHP functions.