Signatur
function_exists(string $function): bool
Beschreibung
Für Feature-Detection: „gibt es opcache_reset()?"
Parameter
| Name | Typ | Default | Beschreibung |
|---|---|---|---|
| $function Pflicht | string | — | Funktions-Name. |
Rückgabewert
Typ
bool
Beispiele
Basis
<?php
if (function_exists('opcache_reset')) opcache_reset();