Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- DEFINE("klaas", "klaas");
- class Sinter {
- public $ophef; // Publieke ophef
- public $sint;
- function __construct($klaas) {
- $this->ophef = 0x5a . 0x77 . 0x61 . 0x72 . 0x74 . 0x65; // ophef over Zwarte Piet
- $this->sint = $klaas; // Klaas is de Sint
- }
- public function klaas() {
- return $this->sint; // Return this Sint
- }
- public function piet() {
- $result = "";
- $o = $this->ophef;
- $result = chr($o[0].$o[1]) . chr($o[2].$o[3].$o[4]) . chr($o[5].$o[6]) . chr($o[7].$o[8].$o[9]) . chr($o[10].$o[11].$o[12]) . chr($o[13].$o[14].$o[15]);
- return $result . " " .__FUNCTION__;
- }
- }
- $sint = new Sinter(klaas); // Sint is Sinterklaas
- echo get_class($sint).$sint->klaas()." en ".$sint->piet(); // Get klaas, Sint -> Piet
Advertisement
Add Comment
Please, Sign In to add comment