If reg.php contains the statement $some_array = array(ele1, ele2, ...);, you would just include('reg.php'); and then refer to $some_array. Including (or requiring) another file is the same as typing it right into your file.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Compnet Ventures, LLC hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.