PHP Classes

Missing function for reads a file content into an array with zip

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  Missing function for reads a file...  
Subject:Missing function for reads a file...
Summary:Missing function in ziparchive for reads a file content into ar
Messages:1
Author:Tushar Katariya
Date:2019-01-04 11:29:43
Update:2019-03-20 04:14:50
 

  1. Missing function for reads a file...   Reply   Report abuse  
Picture of Tushar Katariya Tushar Katariya - 2019-03-20 04:14:50
Hello,

Missing function in ziparchive ( http://php.net/manual/en/class.ziparchive.php ) for reads a file content into array like file() function.
file() function will read contecnt in to the file and out-put with array i want same like function for ziparchive. how we can ger the ziparchive file content with array. i can get the content of zip file with
$content = $zip->getFromName($fileToread);
here $content will retun all file content but i want this content with array like file() function return.