note 15209 added to faq.migration4
| From: | shayas at acxiom dot com | Date: | Fri, 31 Aug 2001 19:43:39 +0000 |
| Subject: | note 15209 added to faq.migration4 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17456@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
http://www.php.net/manual/en/faq.migration4.php