As a language with its roots so firmly in the Internet, it should come as little surprise that PHP has a lot of functionality targeted at allowing you to work with local networks too. In fact, when running using the CLI SAPI, you can use PHP's networking functionality to write your own network applications, and in the next chapter we will be looking at how develop a web server just using PHP.