Some useful class in php