class/oop stuff
This commit is contained in:
parent
c41a44ad13
commit
f90e4222b6
27
docroot/html/classes.php
Normal file
27
docroot/html/classes.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
require_once("_head.php");
|
||||
|
||||
mkheader("classes!", '#8bb');
|
||||
|
||||
|
||||
class html {
|
||||
|
||||
public $br = "<br />";
|
||||
|
||||
public function printline($message) {
|
||||
printf("%s%s\n", $message, $this->br);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<body>
|
||||
<?php
|
||||
|
||||
$page = new html();
|
||||
$page->printline("This is some text, eh?");
|
||||
|
||||
?>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user