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:
  • 7: .

Description

Converts a comma- or space-separated list of scalar values to an array.

Related Functions

wp_parse_id_list, wp_parse_str, wp_parse_slug_list, wp_parse_url, wp_parse_args

Top Google Results

User discussions

wpseek mobile