PHP zip_entry_close()ฟังก์ชั่น
ตัวอย่าง
ปิดรายการไดเรกทอรี ZIP ที่เปิดโดย zip_entry_open():
<?php
$zip = zip_open("test.zip");
if ($zip) {
while ($zip_entry = zip_read($zip)) {
if (zip_entry_open($zip, $zip_entry)) {
// some code
// Close directory entry
zip_entry_close($zip_entry);
}
}
zip_close($zip);
}
?>
ความหมายและการใช้งาน
ฟังก์ชัน zip_entry_close() ปิดรายการไดเร็กทอรี ZIP ที่เปิดโดย zip_entry_open()
ไวยากรณ์
zip_entry_close(zip_entry)
ค่าพารามิเตอร์
Parameter | Description |
---|---|
zip_entry | Required. Specifies the ZIP directory entry returned by zip_read() |
รายละเอียดทางเทคนิค
คืนมูลค่า: | จริงกับความสำเร็จ FALSE เมื่อล้มเหลว |
---|---|
รุ่น PHP: | 4.1.0+ |
❮ PHP Zip อ้างอิง