I'm making a PHP application and would like to use language packs so it can be used in other countries. The language pack would be something like:
$someText="Some text here.";
$otherText="Other text here.";
The problem is I use functions and methods so when I use:
require('lang.pak');
function someFunction($args) {
if (is_string($args)) {
// some code
}
else {
print($someText);
}
}
someFunction(123);
Of course $someText can't be called because its not passed on and not a global var. My question is if there was any good way to get that to work without register globes on? Any ideas would be great. Thanks!