note 15209 rejected and deleted from faq.migration4 by jmcastagnetto

From: Date: Fri, 31 Aug 2001 22:45:08 +0000
Subject: note 15209 rejected and deleted from faq.migration4 by jmcastagnetto
Groups: php.notes 
Request: Send a blank email to php-notes+get-17474@lists.php.net to get a copy of this message
i used to have no problem doing.. $str = "i am hungry"; class a { function func() { echo "str is ".$str."<br>"; } } of course, the output was "str is i am hungry" now I am using the php4.0.5 and the result is "str is" .... it looks like that the class member function can't access to the variable outside! WHY!!!!! I don't know if this is really the problem of php3-php4 but please let me know if I am doing something wrong. thank you

« previous php.notes (#17474) next »