can I include a file with class in another class?
<pre><code>file.php

class file{
    function include_file($file_name){
        include($file_name);
    }
}

$file = new file;
$file-&gt;include_file('content.php');

----------------------------------
content.php

include('content_class.php');
$content = new content;
switch($option){
    case 'a':
        $content-&gt;table_list($option);
    break;
}

----------------------------------
content_class.php
class content{
    function table_list($option){
        echo 'table list for option : '.$option;
    }
}
</code></pre>

<p>I've tested those code and it give the result
// table list for option : a</p>

<p>but i want to know are those class above run in valid way of OOP class ? since class content running inside class file because it was included via content.php</p>

<p>i'm still new with OOP. </p>

<p>Thanks in advance.</p>
