php8.5
Home/ Manual/ dba / functions/ dba_key_split

dba_key_split

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Splits a key in string representation into array representation

Description

dba_key_split(string|false|null $key): array|false

dba_key_split() splits a key (string representation) into an array representation.

Parameters

key

The key in string representation.

Return Values

Returns an array of the form array(0 => group, 1 => value_name). This function will return false if key is null or false.

Changelog

VersionDescription
8.4.0Passing null or false to key is now deprecated.

See Also

Source: reference/dba/functions/dba-key-split.xml · from the official PHP manual (php/doc-en)