loosing var in class / function
| From: | Harry.de | Date: | Wed, 04 Feb 2004 17:52:58 +0000 |
| Subject: | loosing var in class / function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-176822@lists.php.net to get a copy of this message | ||
How can i save a variable in a function?
The lower example doesn't work.
The var is always an empty string!
Anyone any solution?
---------------------------------------------------
$some_var = "foobar";
require('something.php');
class SOMECLASS
{
function SomeFunction()
{
$this->AnotherFunction($some_var);
}
}
----------------------------------------------------
Thanx
H.