|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-05-20 17:39 UTC] zeev
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
Static variable into Class Recursiv function do not work property Script exsample: <? class clss { var $t; function recursiv() { static $r = 0; $r++; echo "$r<BR>\n"; if ($r < $this->t) { $this->recursiv(); } } } $n = new clss; $n->t = 10; $n->recursiv(); ?>