title: PHP ZipArchive: Finding the name of the zipped folder after unzipping
body: <p>I am using the ZipArchive to unzip a zip file:</p>
  
  <p>This file is a zipped up folder and i want to:</p>
  
  <p>Make sure that the content consists of just a folder (obviously with files in side)
  Get the name of the unzipped folder so i can then rename it if needs be?</p>
  
  <p>But having trouble getting the folders name after the unzip? I know i could get the name of the zip file as most of the time when zipped it the same name but some people also change the zipped file name. </p>