ActionScheduler_WPCLI_Scheduler_command::parse_comma_separated_string()privateWC 1.0

Converts a string of comma-separated values into an array of those same values.

Method of the class: ActionScheduler_WPCLI_Scheduler_command{}

No Hooks.

Return

Array.

Usage

// private - for code of main (parent) class only
$result = $this->parse_comma_separated_string( $string ): array;
$string(string) (required)
The string of one or more comma separated values.

ActionScheduler_WPCLI_Scheduler_command::parse_comma_separated_string() code WC 9.3.1

private function parse_comma_separated_string( $string ): array {
	return array_filter( str_getcsv( $string ) );
}