f() public method

public f ( )
Example #1
0
<?php

$a = $b ? d($e) : E::f('g')->h($i);
Example #2
0
<?php

$a = $_GET['b'] ?? 'c';
$d = E::f($g) ?? $h;
$i = j('l') ?? l;
Example #3
0
class C
{
    function f()
    {
        static $a = array(1, 2, 3);
        eval(' static $k = array(4,5,6); ');
        function cfg()
        {
            static $a = array(7, 8, 9);
            eval(' static $k = array(10,11,12); ');
            var_dump($a, $k);
        }
        var_dump($a, $k);
    }
}
$c = new C();
$c->f();
cfg();
class D
{
    static function f()
    {
        eval('function dfg() { static $b = array(1,2,3); var_dump($b); } ');
    }
}
D::f();
dfg();
eval(' Class E { function f() { static $c = array(1,2,3); var_dump($c); } }');
$e = new E();
$e->f();