Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> PHP

ฟังก์ชัน zip_close() ใน PHP

ฟังก์ชัน zip_close() ใช้สำหรับปิดไฟล์อาร์คีฟ ZIP ที่เปิดด้วย zip_open()

รูปแบบการใช้งาน (Syntax)

zip_close(zip_file)

พารามิเตอร์ (Parameters)

  • zip_file − ไฟล์ ZIP ที่เปิดด้วย zip_open() ที่ต้องการปิด

ค่าที่ส่งกลับ (Return Value)

ฟังก์ชัน zip_close() ไม่ส่งคืนค่าใดๆ

ตัวอย่างการใช้งาน

<?php 
$zip_file = zip_open("new.zip"); 
zip_read($zip_file); 
echo "File will be closed now"; 
zip_close($zip); 
?>

ผลลัพธ์ (Output)

File will be closed now