php4 scope
php4 scope
Out of context: Reply #6
- Started
- Last post
- 6 Responses
- System-Idle0
Dang!! sust it!
note var assignment and var access is minus '$'
the hours I have wasted...
class Scope
{
var $myVar1 = NULL;function Scope()
{
$this->myVar1 = 'var 1';
//echo 'Scope';
//echo $myVar1;}
function one()
{
echo 'var: '.$this->myVar1;
}}
$s=new Scope();
$s->one();
back to it :)