note 81688 deleted from function.include by danbrown
| From: | danbrown@php.net | Date: | Mon, 18 May 2009 00:57:02 +0000 |
| Subject: | note 81688 deleted from function.include by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155453@lists.php.net to get a copy of this message | ||
Note Submitter: Alexander
----
include() statement generates a compilation-time error when used inside a class declaration (but not
within a function). For example:
<?php
class MyClass
{
include "file1.php";
include "file2.php";
function func1()
{
.......
}
?>