original_string: protected static function split($i, $s){
          $fs = filesize($i);
          //$bn = basename($i);
          //$dn = dirname($i).DIRECTORY_SEPARATOR;
          $p = 1;
          
          for($c = 0; $c < $fs; $c = $c + $s){
              $data = file_get_contents($i, FILE_BINARY, null, $c, $s);
              //$fn = "$dn$bn.$p";
              $fn = "$i.$p";
              file_put_contents($fn, $data);
              $p++;
              unset($data);
          }
          unlink($i);
          return $p - 1;
      }
code: protected static function split($i, $s){
          $fs = filesize($i);
          //$bn = basename($i);
          //$dn = dirname($i).DIRECTORY_SEPARATOR;
          $p = 1;
          
          for($c = 0; $c < $fs; $c = $c + $s){
              $data = file_get_contents($i, FILE_BINARY, null, $c, $s);
              //$fn = "$dn$bn.$p";
              $fn = "$i.$p";
              file_put_contents($fn, $data);
              $p++;
              unset($data);
          }
          unlink($i);
          return $p - 1;
      }
code_tokens: protected static function split ( $ i , $ s ) { $ fs = filesize ( $ i ) ; //$bn = basename($i); //$dn = dirname($i).DIRECTORY_SEPARATOR; $ p = 1 ; for ( $ c = 0 ; $ c < $ fs ; $ c = $ c + $ s ) { $ data = file_get_contents ( $ i , FILE_BINARY , null , $ c , $ s ) ; //$fn = "$dn$bn.$p"; $ fn = "$i.$p" ; file_put_contents ( $ fn , $ data ) ; $ p ++ ; unset ( $ data ) ; } unlink ( $ i ) ; return $ p - 1 ; }
docstring: Split the zip archive.
  @param string $i The zip archive.
  @param integer $s The max size for the parts.
  @return integer Return the number of parts created.
docstring_tokens: Split the zip archive .