array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'splfileinfo.iswritable.php', 1 => 'SplFileInfo::isWritable', 2 => 'Tells if the entry is writable', ), 'up' => array ( 0 => 'class.splfileinfo.php', 1 => 'SplFileInfo', ), 'prev' => array ( 0 => 'splfileinfo.isreadable.php', 1 => 'SplFileInfo::isReadable', ), 'next' => array ( 0 => 'splfileinfo.openfile.php', 1 => 'SplFileInfo::openFile', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/spl/splfileinfo/iswritable.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SplFileInfo::isWritable

(PHP 5 >= 5.1.2, PHP 7, PHP 8)

SplFileInfo::isWritableTells if the entry is writable

Açıklama

public SplFileInfo::isWritable(): bool

Checks if the current entry is writable.

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

Returns true if writable, false otherwise;

Örnekler

Örnek 1 SplFileInfo::isWriteable() example

<?php
$info
= new SplFileInfo('locked.jpg');
if (!
$info->isWriteable()) {
echo
$info->getFilename() . ' is not writeable';
}
?>

Yukarıdaki örnek şuna benzer bir çıktı üretir:

locked.jpg is not writeable