Hello,
I have the following question...
I have a file that has a function in which I would like to use an array of values that is stored inside of a different file. As such I have tried the following:
file1.php
<?php
function method1(){
require( 'file2.php' );
print_r( $VALUES );
}
?>
and the second file, file2.php
<?php
$VALUES = array( '1', '2', '3' );
?>
but instead, I get obscure errors as though $VALUES did not exist. How do I go about doing this? Is it possible?
Looking forward to your replies.
Alex