php code to connect to mongodb

here we can see how to connect php to mongodb. This approach can be used
in web design to connect php and mongodb as database