new functions to phpt

Hello everyone!

this is my first contribution, im very happy for write phpt and help my comunity here in Brasil PHPSP.
i would like a lot that my pull request is merged!

thanks to all

:-)