PHP 8.6.0 Beta 3 is available for testing

Yaf_Config_Ini::readonly

(Yaf >=1.0.0)

Yaf_Config_Ini::readonlyCheck if configuration is read-only

Açıklama

public function Yaf_Config_Ini::readonly(): bool

Checks whether the configuration is read-only. Yaf_Config_Ini is always read-only.

Bağımsız Değişkenler

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

Dönen Değerler

Always returns true.

Örnekler

Örnek 1 Yaf_Config_Ini::readonly() example

<?php
$config = new Yaf_Config_Ini('/etc/myapp/application.ini', 'common');

// Yaf_Config_Ini is always read-only
var_dump($config->readonly());

// Attempts to write are rejected (and a warning is emitted)
var_dump($config->set('version', '2.0'));
?>

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

bool(true)
bool(false)

Ayrıca Bakınız

add a note

User Contributed Notes

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