Some usefull php function snippets