Bunch if handy PHP functions