added more functions, also added a very basic PHP example.