What is PHP and why is it used for dynamic websites?
PHP is a server-side scripting language commonly used for creating dynamic websites. It is used to generate dynamic content, interact with databases, handle forms, and perform various other tasks that make websites interactive and responsive.
<?php
// PHP code snippet
echo "Hello, World!";
?>