Function __global->cns_long_cn_to_short_cn
Definitions
sources/cns_ldap.php
- Converts an active directory style long-CN to a short one.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $long | string | No | No | required parameter | N/A | N/A | The long one |
| $type | string | No | No | required parameter | N/A | N/A | The type (e.g. CN, DN). |
Returns
- The short one
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Converts an active directory style long-CN to a short one.
*
* @param string $long The long one
* @param string $type The type (e.g. CN, DN).
* @return string The short one
*/
function cns_long_cn_to_short_cn(string $long, string $type) : string
* Converts an active directory style long-CN to a short one.
*
* @param string $long The long one
* @param string $type The type (e.g. CN, DN).
* @return string The short one
*/
function cns_long_cn_to_short_cn(string $long, string $type) : string
