Function __global->accepts_encoding
Definitions
sources/output_compression.php
- Find whether the current web client supports an output compression encoding.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$encoding | string | No | No | required parameter | N/A | N/A | Encoding to check |
Returns
- Whether it does
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find whether the current web client supports an output compression encoding.
*
* @param string $encoding Encoding to check
* @return boolean Whether it does
*/
function accepts_encoding(string $encoding) : bool
* Find whether the current web client supports an output compression encoding.
*
* @param string $encoding Encoding to check
* @return boolean Whether it does
*/
function accepts_encoding(string $encoding) : bool