|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-07-10 06:09 UTC] stas at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 10 21:00:01 2026 UTC |
<?php class bugtest { var $A = -1; var $B = -1; function setVarA($value) { $this->$A=$value; } function setVarB($value) { $this->$B=$value; } function getVarA() { return $this->$A; } function getVarB() { return $this->$B; } } echo "<BR>"; echo "Current PHP version: ".phpversion(); $bug = new bugtest; $bug->setVarA(13); $bug->setVarB(7); echo "<BR>"; echo $bug->getVarA(); echo "<BR>"; echo $bug->getVarB(); ?> This is the output !! ( Where has "13" gone???") Current PHP version: 4.0.1pl2 7 7