Recently, run the zipinfo command through shell_exec to obtain the file list information in the corresponding zip package. the returned value is a string. how can I format the output return value as an array? Archive: 222.zip Zipfilesize: 1358592 bytes, numberofentries: 69-rw ---- 6.3fat33897bxdefN12-Jul-0923: 47PEAR. php-rw ---- 6.3fat34308bxdefN12-Jul-0923: 47chmod .. php compressed shell formatting
Recently, run the zipinfo command through shell_exec to obtain the file list information in the corresponding zip package. the returned value is a string. how can I format the output return value as an array?
Archive: 222.zip
Zip file size: 1358592 bytes, number of entries: 69
-Rw ---- 6.3 fat 33897 bx defN 12-Jul-09 PEAR. php
-Rw ---- 6.3 fat 34308 bx defN 12-Jul-09 chmod. define
-Rw ---- 6.3 fat 2102 bx defN 12-Jul-09 chmod. php
-Rw ---- 6.3 fat 32 bx stor 12-Jul-09 config. php
-Rw ---- 6.3 fat 2356 bx defN 12-Oct-17 copy. php
-Rw ---- 6.3 fat 1991 bx defN 12-Jul-09 delete. php
-Rw ---- 6.3 fat 1659 bx defN 12-Jul-09 dirinfo. php
-Rw ---- 6.3 fat 371 bx defN 12-Jul-09 download. php
-Rw ---- 6.3 fat 1807 bx defN 12-Jul-09 editor. php
-Rw ---- 6.3 fat 609 bx defN 12-Jul-09 exit. php
-Rw ---- 6.3 fat 2788 bx defN 12-Sep-23 fileinfo. php
-Rw ---- 6.3 fat 3525 bx defN 12-Oct-17 function. php
Drwx --- 6.3 fat 0 bx stor 16-Jan-25 geshi/
-Rw ---- 6.3 fat 16993 bx defN 12-Jul-09 geshi/apache. php
-Rw ---- 6.3 fat 6038 bx defN 12-Jul-09 geshi/asp. php
-Rw ---- 6.3 fat 10457 bx defN 12-Jul-09 geshi/c. php
-Rw ---- 6.3 fat 10103 bx defN 12-Jul-09 geshi/cpp. php
-Rw ---- 6.3 fat 9900 bx defN 12-Jul-09 geshi/css. php
-Rw ---- 6.3 fat 3016 bx defN 12-Jul-09 geshi/gettext. php
-Rw ---- 6.3 fat 6824 bx defN 12-Jul-09 geshi/html4strict. php
-Rw ---- 6.3 fat 7975 bx defN 12-Jul-09 geshi/html5.php
-Rw ---- 6.3 fat 50326 bx defN 12-Jul-09 geshi/java. php
22 files, 3552318 bytes uncompressed, 1349142 bytes compressed: 62.0%