Usefull functions in php