I've this php file (textMessages.php) where I'd like to define some php arrays ...
<?php
/*
-----------------
Language: Italian
-----------------
*/
$langIT = array();
$langIT['LANG__CHOICE'] = 'Seleziona la lingua';
/*
-----------------
Language: English
-----------------
*/
$langEN = array();
$langEN['LANG__CHOICE'] = 'Select the language';
?>
In a second php file (myFile.php) I'd like to use the two php array above for example (this code DOES NOT work ...)
<?php
include("textMessages.php");
....
....
....
function myFunction($var1, $var2, ...)
{
....
$langCurrent = array();
$langCurrent = $langEN;
.....
}
?>
when I try to execute I obtain this error ...
PHP Notice: Undefined variable: langEN
How may I to share the array defined in the first file to using them in the second one?