Php-how to format the value returned by shell_exec

Source: Internet
Author: User
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%

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.