PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have some problems with variables. I have a class and then I have a language.php file and I include the class file and the language file in index.php file. Now I have this in language file:
and when I try to echo the $lang_time variable in the index file it works ok and I get "Time" as a result but when I try to echo it inside one of the class's functions I don't get nothing. How can I make it like it would work there too?