spuris Posted October 19, 2010 Report Share Posted October 19, 2010 Problēma tāda: --- a.php ---- echo $A->B; --- index.php ---- class A { var $B = 'Hello!'; } include('a.php'); // Hello! function includeFunction() { include('a.php'); } includeFunction() // ERROR Kāpēc tā varētu būt? Quote Link to comment Share on other sites More sharing options...
marcis Posted October 19, 2010 Report Share Posted October 19, 2010 http://lv.php.net/manual/en/language.variables.scope.php Quote Link to comment Share on other sites More sharing options...
spuris Posted October 19, 2010 Author Report Share Posted October 19, 2010 http://lv.php.net/manual/en/language.variables.scope.php izlasīju, bet tāpat nav skaidrs! varbūt ir iespēja pielabot esošo piemēru? Quote Link to comment Share on other sites More sharing options...
mefisto Posted October 19, 2010 Report Share Posted October 19, 2010 Lasi : http://lv.php.net/manual/en/language.oop5.basic.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.