So what am I missing here? How come I can do this...
1.php
Code: Select all
<?php
include("2.php");
echo $title;
?>Code: Select all
<?php
$title = 'hello world';
?>So I assigned the variables outside of the programming and then assigned them to other variables so...
$var1 in 1.php is pulled from 2.php
On 2.php $var1 = $var2
$var2 is defined within procedural programming.
I can go in to further details tomorrow but I'm already being dragged in to unconsciousness.