I tried searching around to find an answer to this but to no avail.
I have a simples PHP script with the below code:
<?php
header("Content-Type: application/json");
echo "Hello";
?>
I then execute the file using the below command:
php -f index.php
and the output is:
Hello
My question is, is it possible to return the header I outputted using PHP, so my expected output would be something like:
Content-Type: application/json
Hello