how can i use a local variable defined in a function outside of this function (as a GLOBAL variable)
this reply might sound a bit stupid..but i guess it might just be right 🙂
define a global variable and then assign the value of the local variable to this global vriable at the end if the function
hope that helps
Or just define the global variable outside of your function and at the start of your function put a reference to it.
function MyFunction(){ global GlobVar;
GlobVar = 'Just work with this as you would any variable';
}
Mike
thanx for help but i need to include file with definition of many variables ($MSG_xxxxx) for multi language support and idea to define all of them in basic script sounds no good
do you have more ideas? 🙂 P.S. a whant to know can i register it in $GLOBAL[] array???