How can the 'Content-Type: text/plain' header be set as a default in PHP?
To set the 'Content-Type: text/plain' header as a default in PHP, you can use the header() function to send a raw HTTP header. This will ensure that the output of your PHP script is treated as plain text by the browser. Simply add the header() function at the beginning of your PHP script to set the content type.
<?php
header('Content-Type: text/plain');
// Your PHP code here
?>