文件名称:chunker:用PHP分割非常大的文件或字符串(多字节安全)
文件大小:13KB
文件格式:ZIP
更新时间:2024-06-12 03:18:04
PHP
块状 用PHP分割大文件或字符串(多字节安全)。 use Jstewmc \ Chunker ; // create an example file with the mixed-byte string "from $ to €" // keep in mind, every character in the string "from $ to " is one-byte in UTF-8; // however, the euro symbol, "€", is a three-byte character in UTF-8 // file_put_contents ( 'example.txt' , "from $ to €" ); // create a file chunker $ chunker = new Chunker \ File ( 'example.txt
【文件预览】:
chunker-master
----.gitignore(89B)
----README.md(6KB)
----tests()
--------FileTest.php(16KB)
--------TextTest.php(13KB)
----phpunit.xml(549B)
----LICENSE(1KB)
----composer.json(413B)
----src()
--------File.php(6KB)
--------Text.php(3KB)
--------Chunker.php(6KB)