note 30299 added to function.include
| From: | holger dot willenborg at gmx dot net | Date: | Thu, 13 Mar 2003 13:10:41 +0000 |
| Subject: | note 30299 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45213@lists.php.net to get a copy of this message | ||
In Addition to ernest at vogelsinger's very helpful note (Oct 2002), you need to use the
following code if you move the code of a function with return values into another file:
class A {
function foo() {
return include ('function_body.php');
}
}
--
http://www.php.net/manual/en/function.include.php
http://master.php.net/manage/user-notes.php?action=edit+30299
http://master.php.net/manage/user-notes.php?action=delete+30299
http://master.php.net/manage/user-notes.php?action=reject+30299