keyValue.php
Table of Contents
Functions
- keyValue() : string
- Build a key-value expression like `key: value`.
Functions
keyValue()
Build a key-value expression like `key: value`.
keyValue(string|object|int|float|bool $key, mixed $value[, string $separator = ':' ]) : string
This function ensures that both key and value are cast to strings.
Parameters
- $key : string|object|int|float|bool
-
The key (stringable value).
- $value : mixed
-
The value (will be cast to string).
- $separator : string = ':'
-
The separator between key and value (default ':').
Tags
Return values
string —The key-value expression.