title: How to save extracted zip file with specific filename
body: <p>I have zip files with only one file inside it, but it has new name every time. I need to extract file and save it with <strong>specific file name</strong>, not extracted one. </p>
  
  <pre><code>  $zip = new ZipArchive;
    $res = $zip-&gt;open($tmp_name);
    if ($res === TRUE) {
  
     $path = _PATH."/files/";
     $zip-&gt;extractTo($path);
     $zip-&gt;close();
     echo 'Unzip!';
    }
  </code></pre>
  
  <p>Abowe code works, but I need to have specific filename. For example anyfile located under zip (eg. <strong>pricelist025.xml</strong> should be named <strong>temp.xml</strong></p>