برنامه نویسی

عکاسی

پیشنهاد ویژه

[button color="primary" size="big" link="https://nabfollower.com/buy-real-follower/" icon="" target="true" follow="false"]خرید فالوور واقعی[/button][button color="primary" size="big" link="https://nabfollower.com/buy-instagram-like/" icon="" target="true" follow="false"]خرید لایک اینستاگرام[/button][button color="primary" size="big" link="https://nabfollower.com/buy-instagram-views/" icon="" target="true" follow="false"]خرید ویو اینستاگرام[/button][button color="primary" size="big" link="https://nabfollower.com/" icon="" target="true" follow="false"]خرید فالوور اینستاگرام[/button]

$ cycle_l طول = 2 * ($ دوستان – 1) ؛
$ upful_time = $ time ٪ $ cycle_l طول ؛

$current = 1;
$direction = 1;

for ($i = 0; $i < $effective_time; $i++) {
    $current += $direction;

    if ($current > $friends) {
        $direction = -1;
        $current = $friends - 1;
    } elseif ($current < 1) {
        $direction = 1;
        $current = 2;
    }
}

return [$current - $direction, $current];

اضافه کردن $ uffect_time == 0 = $ cycle_l طول *2

نوشته های مشابه

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *

دکمه بازگشت به بالا