wp_parse_list
wp_parse_list ( $input_list )
Parameters:- (array|string|int) input_list List of values.
Returns:- (array) Array of scalar values. A string is split into a list, while an array
keeps its keys, so the result is not necessarily a list.
Defined at:Change Log: - Introduced in WordPress: 5.1.0
- Deprecated in WordPress: —
Description
Converts a comma- or space-separated list of scalar values to an array.