
22.12.2017, 17:53
|
|
Постоянный
Регистрация: 18.03.2016
Сообщений: 663
С нами:
5344886
Репутация:
441
|
|
Сообщение от Britney Spears
Britney Spears said:
Gimme gimme more, gimme more, gimme gimme more [x4]
PHP код:
[COLOR="#000000"][COLOR="#0000BB"]$x[/COLOR][COLOR="#007700"]=[/COLOR][COLOR="#DD0000"]'O:16:"DOMConfiguration":1:{s:1:"A";r:1;}'[/COLOR][COLOR="#007700"]; [/COLOR][COLOR="#0000BB"]var_dump[/COLOR][COLOR="#007700"]([/COLOR][COLOR="#0000BB"]unserialize[/COLOR][COLOR="#007700"]([/COLOR][COLOR="#0000BB"]$x[/COLOR][COLOR="#007700"])); [/COLOR][/COLOR]
PHP код:
[COLOR="#000000"][COLOR="#0000BB"][/COLOR][COLOR="#007700"]function[/COLOR][COLOR="#0000BB"]test[/COLOR][COLOR="#007700"]() { static[/COLOR][COLOR="#0000BB"]$i[/COLOR][COLOR="#007700"]=[/COLOR][COLOR="#0000BB"]0[/COLOR][COLOR="#007700"]; if ([/COLOR][COLOR="#0000BB"]$i[/COLOR][COLOR="#007700"]===[/COLOR][COLOR="#0000BB"]PHP_INT_MAX[/COLOR][COLOR="#007700"]) { echo[/COLOR][COLOR="#0000BB"]$i[/COLOR][COLOR="#007700"].[/COLOR][COLOR="#0000BB"]PHP_EOL[/COLOR][COLOR="#007700"]; return ; } if (!([/COLOR][COLOR="#0000BB"]$i[/COLOR][COLOR="#007700"]%[/COLOR][COLOR="#0000BB"]256[/COLOR][COLOR="#007700"])) { echo[/COLOR][COLOR="#0000BB"]$i[/COLOR][COLOR="#007700"].[/COLOR][COLOR="#0000BB"]PHP_EOL[/COLOR][COLOR="#007700"]; } [/COLOR][COLOR="#0000BB"]$i[/COLOR][COLOR="#007700"]++; [/COLOR][COLOR="#0000BB"]test[/COLOR][COLOR="#007700"](); } [/COLOR][COLOR="#0000BB"]test[/COLOR][COLOR="#007700"](); [/COLOR][/COLOR]
PHP код:
[COLOR="#000000"][COLOR="#0000BB"][/COLOR][COLOR="#007700"]interface[/COLOR][COLOR="#0000BB"]MyInterface[/COLOR][COLOR="#007700"]{ public function[/COLOR][COLOR="#0000BB"]toHtml[/COLOR][COLOR="#007700"](); }
abstract class[/COLOR][COLOR="#0000BB"]MyAbstract[/COLOR][COLOR="#007700"]{ protected function[/COLOR][COLOR="#0000BB"]_toHtml[/COLOR][COLOR="#007700"]() { return[/COLOR][COLOR="#DD0000"]''[/COLOR][COLOR="#007700"]; }
final public function[/COLOR][COLOR="#0000BB"]toHtml[/COLOR][COLOR="#007700"]() { return[/COLOR][COLOR="#0000BB"]$this[/COLOR][COLOR="#007700"]->[/COLOR][COLOR="#0000BB"]_toHtml[/COLOR][COLOR="#007700"](); } }
class[/COLOR][COLOR="#0000BB"]MyClass[/COLOR][COLOR="#007700"]extends[/COLOR][COLOR="#0000BB"]MyAbstract[/COLOR][COLOR="#007700"]implements[/COLOR][COLOR="#0000BB"]MyInterface[/COLOR][COLOR="#007700"]{ function[/COLOR][COLOR="#0000BB"]_toHtml[/COLOR][COLOR="#007700"]() { return[/COLOR][COLOR="#0000BB"]$this[/COLOR][COLOR="#007700"]->[/COLOR][COLOR="#0000BB"]toHtml[/COLOR][COLOR="#007700"](); } }
[/COLOR][COLOR="#0000BB"]$obj[/COLOR][COLOR="#007700"]= new[/COLOR][COLOR="#0000BB"]MyClass[/COLOR][COLOR="#007700"](); [/COLOR][COLOR="#0000BB"]var_dump[/COLOR][COLOR="#007700"]([/COLOR][COLOR="#0000BB"]$obj[/COLOR][COLOR="#007700"]->[/COLOR][COLOR="#0000BB"]_toHtml[/COLOR][COLOR="#007700"]()); exit; [/COLOR][/COLOR]
|
|
|