|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-03 04:47 UTC] k.schroeder@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 09:00:01 2025 UTC |
class test { var $_value; function test_static ($to) { $this->_value = $to; } } class test2 { var $_value; function use_test () { $this->_value = 7; $y = new test(); $y->test_static(5); echo "<p>value: ".$this->_value."</p>"; test::test_static (5); echo "<p>value: ".$this->_value."</p>"; } } $x=new test2(); $x->use_test(); First echo returns value 7 Second echo returns value 5 is this correct?