Jump to content

stive

Новичок
  • Content Count

    1
  • Joined

  • Last visited

About stive

  • Rank
    Новичок

Profile Information

  • Специализация
    Вебмастер
  • Профиль ID
    https://twitter.com/PetarGrigson
  1. $messages_array = array( "1", "2", "3", "4", ); if (file_exists('tmp')) { $tmp = trim(file_get_contents('tmp')); } else { $tmp = 0; } if($tmp == count($messages_array)){ file_put_contents('tmp', 0); $tmp = 0; } for ($i = $tmp; $i < count($messages_array); $i++) { echo $messages_array[$i]; file_put_contents('tmp', $i + 1); die; }
×
×
  • Create New...