"testinc1.php"
<?php
echo ("Here-");
$var1="Why-";
$var2="does-";
$var3="it-";
$var4="do-";
$var5="this";
echo($var1.$var2.$var3.$var4.$var5);
echo ("-Here");
?>
returns
Here-Why-does-it-do-this-Here
but
"testinc.php"
<?php
$var1="Why-";
$var2="does-";
$var3="it-";
$var4="do-";
$var5="this";
?>
"testinc2.php"
<?php
echo ("Here-");
include("testinc.php");
echo($var1.$var2.$var3.$var4.$var5);
echo ("-Here");
?>
returns
Here-Why-does-it-do-this-Here
My expectation was that the output would be exactly the same.
So am I being daft?
or
my Firefox / php 5.3.6 / win 7 64bit incorrectly setup?
or
something else?
....tend to go for the first.....🙂
Stuart