I would like to set a PHP variable by way of a field in a content type.

Then in other content types, I want the value of a field to be filled with that set variable.
I do not want to have to update the content type for it to display the variable I would like it to calculate before the page loads.

Is this possible?