« zip_entry_filesize
zip_entry_open »

zip_entry_name

(PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.0.0)

zip_entry_name — ディレクトリエントリの名前を取得する

警告

この関数は PHP 8.0.0 で 非推奨になります。この関数に頼らないことを強く推奨します。

説明

#[\Deprecated(
    since: '8.0',
    message: 'use ZipArchive::statIndex() instead',
)]

function zip_entry_name(resource $zip_entry): string|false

指定したディレクトリエントリの名前を返します。

パラメータ

zip_entry

zip_read()により返されたディレクトリエントリ

戻り値

ディレクトリエントリの名前を返します。 失敗した場合に false を返します

変更履歴

バージョン 説明
8.0.0 この関数は非推奨になりました。オブジェクト指向のAPIを使うのが望ましいです。 ZipArchive::statIndex() を参照ください。

参考

  • zip_open() - Zip ファイルアーカイブをオープンする
  • zip_read() - Zip ファイルアーカイブの中の次のエントリを読み込む

関連キーワード:
エントリ   entry   非推奨   ZipArchive   statIndex   read   アーカイブ   filesize   推奨   Deprecated   since   message   instead   resource   履歴   オブジェクト指向   参考   オープン
関連する関数・ページ:
function.zip-entry-filesize   function.zip-entry-close   function.zip-entry-read   ref.zip   function.zip-read   function.zip-entry-compressedsize