Hello all,

I want to learn how to make websites by using OOP.

This is what I have now, this is a good start or have I misunderstood the structure of OOP?

index.php
PHP Code:
<?php
    
require './cls/website.php';
    
$website = new website;
    
$website->title 'My title';
    
$website->content 'My content';
    echo 
$website->render();
?>
website.php
PHP Code:
<?php
    
class website {
        var 
$title;
        var 
$content;
        
        function 
header() {
            
$header[] = '<!doctype html>';
            
$header[] = '<html lang="en">';
            
$header[] = '<head>';
            
$header[] = '<title>'.$this->title.'</title>';
            
$header[] = '</head>';
            return 
$header;
        }
        
        function 
content() {
            
$content[] = '<body>';
            
$content[] = $this->content;
            
$content[] = '</body>';
            return 
$content;
        }
        
        function 
footer() {
            
$footer[] = '</html>';
            return 
$footer;
        }
        
        function 
render() {
            
$page array_merge($this->header(), $this->content(), $this->footer());
            foreach (
$page as $value) {
                echo 
$value"\n";
            }
        }
    }
?>
Could you guys give me some advice?

Thanks in advance & sorry for my bad english...
x-taste