|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-07-23 02:54 UTC] zak at cvs dot php dot net
[2000-07-23 11:06 UTC] stas at cvs dot php dot net
[2001-04-29 13:39 UTC] andi@php.net
[2001-05-06 11:09 UTC] zeev@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 10:00:01 2025 UTC |
Script set.php3: <? class x { var $a=2; function seta ($b) { $this->a = $b; echo "$b\n"; } } $y = new x(); echo $y->a,"\n"; $y->seta(10); echo $y->a,"\n"; ?> Run: php -f set.php3 get: 2 10 10 still OK. Now run php -a < set.php3: Interactive mode enabled Content-Type: text/html 2 2 Huh? where's my method call? Or interactive mode isn't what I thought it is? Strange thing is that php < set.php3 does work, so what "interactive mode" is in fact?