What are the standard file formats for PHP scripts and how does this affect their interpretation by web servers?

The standard file formats for PHP scripts are typically .php or .phtml. The choice of file format affects how the web server interprets the PHP code within the file. Using the correct file format ensures that the server recognizes and processes the PHP code correctly.

<?php
// This is a PHP script using the correct file format (.php)
echo "Hello, World!";
?>