PHP 8.6.0 Beta 3 is available for testing

Yaf_Config_Simple::readonly

(Yaf >=1.0.0)

Yaf_Config_Simple::readonlyCheck if configuration is read-only

Descrizione

public function Yaf_Config_Simple::readonly(): bool

Checks whether the configuration is read-only.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

Returns true if the configuration is read-only, false otherwise.

Esempi

Example #1 Yaf_Config_Simple::readonly() example

<?php
$writable = new Yaf_Config_Simple(['env' => 'development']);
var_dump($writable->readonly());

$frozen = new Yaf_Config_Simple(['env' => 'development'], true);
var_dump($frozen->readonly());
?>

Il precedente esempio visualizzerà qualcosa simile a:

bool(false)
bool(true)

Vedere anche:

add a note

User Contributed Notes

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