Introduction
PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I have used WampServer 2.2 for following excercise..
<?php echo "Your User Agent is :" . $_SERVER ['HTTP_USER_AGENT']; ?>
Result
![Write a simple PHP browser detection script](https://techstudys.com/wp-content/uploads/2021/07/4-32.png)