Signatur
is_readable(string $filename): bool
Beschreibung
Berücksichtigt Permissions und ACLs. Return false auch wenn Datei nicht existiert.
Parameter
| Name | Typ | Default | Beschreibung |
|---|---|---|---|
| $filename Pflicht | string | — | Pfad. |
Rückgabewert
Typ
bool
Beispiele
Basis
<?php
if (!is_readable($path)) throw new RuntimeException("Nicht lesbar: $path");