PHP with arbitrary characters in the method name and variable

    Sometimes I just marvel at the perverted flexibility of PHP

    class t {
    	function __call ($ name, $ arg)
            {
    		echo __CLASS __, '::', $ name, '(', implode (',', $ arg), ')', PHP_EOL;
    	}
    }
    $ t = new T ();
    $ t -> {'$:)'} ();
    echo $ t -> {'test-sdfsdfsd'};
    $ Russian = 1;
    echo $ Russian;
    echo 'Ok';
    / * //
    it code say:
    t :: $:) ()
    1 Ok
    // * /
    

    Although the ORM may take root ...

    Also popular now: