More of a general understanding question then a problem to solve question.
In Drupal core version 10.X.X, is there a PHP file in which a user can freely run global PHP commands that would effect any webpage in the website?
An example command is:
<?php
echo 'This ' . 'string ' . 'was ' . 'made ' . 'with concatenation.' . "\n";
?>
I ask about a file where the very last PHP in the queue would be executed, similar to how the very last JS or CSS in the queue would be globally executed at say behavior.js
or style.css
.
A "Test any PHP globally here, in the last line of the file" kind of file.
How to run global PHP?