Пример #1
0
<?php

function f9()
{
    $i = 0;
    $arr = array(1, 1, 1);
    $bar = array();
    $first = true;
    foreach ($arr as $k => &$v) {
        echo "k={$k} v={$v}\n";
        if (!$first) {
            $prev_k = ($k + 2) % 3;
            unset($arr[$prev_k]);
            if (count($bar) > 100) {
                $bar = array();
            }
            $bar[] = 1;
            $arr[$prev_k] = 1;
        }
        $first = false;
        ++$i;
        if ($i >= 20) {
            break;
        }
    }
}
f9();
Пример #2
0
<?php

function f9()
{
    $i = 0;
    $arr = array(1, 1, 1);
    $bar = array();
    $first = true;
    foreach ($arr as $k => &$v) {
        (yield null);
        echo "k={$k} v={$v}\n";
        if (!$first) {
            $prev_k = ($k + 2) % 3;
            unset($arr[$prev_k]);
            if (count($bar) > 100) {
                $bar = array();
            }
            $bar[] = 1;
            $arr[$prev_k] = 1;
        }
        $first = false;
        ++$i;
        if ($i >= 20) {
            break;
        }
    }
}
foreach (f9() as $_) {
}
Пример #3
0
function f10($v93, $v104 = "")
{
    global $v31, $v81, $v33, $getMyid3info, $v63;
    @set_time_limit(30);
    @flush();
    $v64 = explode(".", $v93);
    if ($getMyid3info == "yes" && strtolower($v64[sizeof($v64) - 1]) != "xml") {
        $v73 = f7($v93);
    } else {
        $v73 = array();
        $v73[0] = "";
        $v73[1] = "";
        $v73[2] = "";
        $v73[3] = "";
        $v73[4] = "";
        $v73[5] = "";
        $v73[6] = "";
        $v73[7] = "";
        $v73[8] = "";
    }
    for ($i = 0; $i < sizeof($v73); $i++) {
        $v73[$i] = f3($v73[$i], "display");
    }
    $v25 = explode($v81, $v93);
    $v90 = $v25[sizeof($v25) - 1];
    $v27 = explode('.', $v90);
    $v91 = $v27[sizeof($v27) - 2];
    if ($v73[0] == "" || $v73[0] == null) {
        $v73[0] = $v91;
    }
    if ($v73[2] == "" || $v73[2] == null) {
        $v73[2] = $v91;
    }
    $v73[9] = f3(f9($v93));
    return implode("|", $v73);
}