Unpack zip using php

What is the best way to unpack a zip?

Added.

Guys, write a zip class, please! I wrote, but something doesn’t work, although it used to work when it wasn’t necessary!

$zip = new ZipArchive;
if ($zip -> open("my.zip") === TRUE)
{
    //   
    $zip -> extractTo("file_time/);
    $zip -> close();
    echo ' ';
}
else echo '     ';
               echo "<<<<<<<<<<<<<<<";
               echo "<br>";

Something doesn’t work(


Answer 1, authority 100%

PHP – UnZip on ServerPoke around)


Answer 2, authority 100%

see the accepted answer here – there with an example