public/wordpress/wp-content/plugins/wp-courseware/includes/functions/utilities.php
/**
 * WordPress stores names arrays ( month and weekday and all variants )
 * with text value indices, so this creates an array with numerical indices instead.
 *
 * @since 4.3.0
 *
 * @param array $array The array to strip out the text indices.
 *
 * @return array The array with numerical indicies.
 */
WordPress stores names arrays ( month and weekday and all variants )
with text value indices, so this creates an array with numerical indices instead.



@param array $array The array to strip out the text indices.

@return array The array with numerical indicies.
WordPress stores names arrays ( month and weekday and all variants ) with text value indices so this creates an array with numerical indices instead . @param array $array The array to strip out the text indices . @return array The array with numerical indicies .
function wpcw_string_array_to_numeric( $array ) {
	$numeric_array = array();
	foreach ( $array as $string ) {
		$numeric_array[] = $string;
	}
	return $numeric_array;
}
function wpcw_string_array_to_numeric ( $ array ) { $ numeric_array = array ( ) ; foreach ( $ array as $ string ) { $ numeric_array [ ] = $ string ; } return $ numeric_array ; }
WordPress stores names arrays ( month and weekday and all variants )
 with text value indices, so this creates an array with numerical indices instead.
WordPress stores names arrays ( month and weekday and all variants ) with text value indices so this creates an array with numerical indices instead .