note 59419 deleted from function.return by felipe
| From: | felipe@php.net | Date: | Sat, 15 Dec 2007 15:07:46 +0000 |
| Subject: | note 59419 deleted from function.return by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133542@lists.php.net to get a copy of this message | ||
Note Submitter: mike at uwmike dot com
----
If you have a class file that's getting out of control, you can set it up like so:
<?php
class myClass {
function do_this($a, $b) { return require(myClass_do_this.php); }
function do_that($a, $b, $c) { return require(myClass_do_that.php); }
}
?>
Might not be for everyone, but it's workable, readable, and keeps the source files shorter.