Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TestClass
- {
- public $foo;
- public $language;
- //tar man bort // funkar det ej :S
- //$this->language = $_SESSION['language'];
- public function __construct($foo) {
- $this->language = $foo;
- $this->disp($this->language);
- }
- public function disp($what){
- echo $what.' '.$this->language;
- }
- }
- $class = new TestClass($_SESSION['language']);
Add Comment
Please, Sign In to add comment