In this tutorial we will learn how to detect operating system using PHP in a webpage. Because some time we need to show some links on webpage according to operating system in which it opened. In PHP we can determine operating system information using webpage’s HTTP_USER_AGENT header. Using below