update page now

ZipArchive::setCommentIndex

(PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.4.0)

ZipArchive::setCommentIndexİndisi belirtilen girdiye bir açıklama ekler

Açıklama

public ZipArchive::setCommentIndex(int $indis, string $açıklama): bool

İndisi belirtilen girdiye bir açıklama ekler.

Bağımsız Değişkenler

indis

Girdi indisi.

açıklama

Açıklamanın içeriği.

Dönen Değerler

Başarı durumunda true, başarısızlık durumunda false döner.

Örnekler

Örnek 1 - Bir arşiv açıp bir girdiye açıklama eklemek

<?php
$zip
= new ZipArchive;
$res = $zip->open('test.zip');
if (
$res === TRUE) {
$zip->setCommentIndex(2, 'yeni girdi açıklaması');
$zip->close();
echo
'Tamam';
} else {
echo
'Olmadı';
}
?>
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant