All pastes #742671 Raw Edit

Mine

public text v1 · immutable
·published 2007-10-19 18:42 UTC
rendered paste body
<?php
error_reporting(E_ALL);
ini_set('display_errors', 'on');
ini_set('ignore_repeated_errors', 'off');
//defined('IS_USER') or die('Do not try to hack.');
class phpIsFuckingShit {
    var $input;
    function __construct() {
        $input = new phpIsFuckingShit();
    }
}

class input {
    var $text;
    
    function __construct() {
        $text = new inputText();
    }
}

class inputText {
    private $caption;
    
    function caption($arg = null) {
        if (null === $caption) {
            return $this->caption;
        } else {
            $this->caption = $arg;
        }
    }
}

$itIsSenseLessPseudoLanguage = new phpIsFuckingShit;
$itIsSenseLessPseudoLanguage->input->text->caption('Hello world');
$why = $itIsSenseLessPseudoLanguage->input->text->caption();
echo "'" . $why . "'";
echo 'here';
?>