I have an included file that is not reading the variable from the calling php. The variable is always null. How can I send a variable to the include file? I have to declare the variable in main.php.
Example:
Main.php
$Value=“Hey”;
include ’ resources/Content.php’;
Content.php
echo $Value;