PHP funkce constant()
Dostupnost ve verzích: PHP 4.0.4
Parametry
| Parametr | Datový typ | Výchozí hodnota | Poznámka |
|---|---|---|---|
$name |
string |
není | The constant name. |
Návratové hodnoty
- int
The filter() method must return one of three values upon completion.
Return Value Meaning PSFS_PASS_ON Filter processed successfully with data available in the outbucket brigade.PSFS_FEED_ME Filter processed successfully, however no data was available to return. More data is required from the stream or prior filter. PSFS_ERR_FATAL (default) The filter experienced an unrecoverable error and cannot continue. / public function filter($in, $out, &$consumed, $closing) { }
/**
- bool / public function onCreate() { }
/**
- string
- mixed the value of the constant, or &null; if the constant is not defined.
Další zdroje
- https://www.php.net/manual/en/php-user-filter.filter.php
- https://www.php.net/manual/en/php-user-filter.oncreate.php
- https://www.php.net/manual/en/php-user-filter.onclose.php / public function onClose() { }
}
/** Instances of Directory are created by calling the dir() function, not by the new operator. / class Directory {
/**
- https://www.php.net/manual/en/directory.close.php / public function close ( $dir_handle ) {}
/** Rewind directory handle. Same as rewinddir(), only dir_handle defaults to $this.
- https://www.php.net/manual/en/directory.rewind.php / public function rewind ( $dir_handle ) {}
/** Read entry from directory handle. Same as readdir(), only dir_handle defaults to $this.
- https://www.php.net/manual/en/directory.read.php / public function read ( $dir_handle) { }
}
/** Returns the value of a constant
AI konzultace & implementacePomohu vám zavést AI do vašeho projektu– od analýzy a návrhu řešení až po nasazení do produkce. Ušetřete čas, zjednodušte procesy a získejte konkurenční výhodu.
Domluvit konzultaciKonzultant: Jan BarášekPotřebujete poradit s PHP?Nabízím trénink vývojářů, konzultace, školení a analýzu návrhových vzorů. Osobně v Praze nebo online.
Napište miLektor: Jan BarášekNewsletter
Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.