What are the advantages of using Apache as a web server for PHP development compared to IIS?

Apache is an open-source web server that is widely used for PHP development due to its flexibility, scalability, and compatibility with various operating systems. Compared to IIS, Apache is known for its robust performance, extensive documentation, and strong community support. Additionally, Apache offers a wide range of modules and features that can enhance the functionality and security of PHP applications.

// Sample PHP code using Apache as the web server
<?php
echo "Hello, Apache!";
?>