public/wordpress/wp-content/plugins/wp-courseware/includes/functions/core.php
/**
 * Remove precision from an array of number and return an array of int.
 *
 * @since 4.5.0
 *
 * @param array $value Number to add precision to.
 *
 * @return int
 */
Remove precision from an array of number and return an array of int.

@param array $value Number to add precision to.

@return int
Remove precision from an array of number and return an array of int . @param array $value Number to add precision to . @return int
function wpcw_remove_number_precision_deep( $value ) {
	if ( is_array( $value ) ) {
		foreach ( $value as $key => $subvalue ) {
			$value[ $key ] = wpcw_remove_number_precision_deep( $subvalue );
		}
	} else {
		$value = wpcw_remove_number_precision( $value );
	}
	return $value;
}
function wpcw_remove_number_precision_deep ( $ value ) { if ( is_array ( $ value ) ) { foreach ( $ value as $ key => $ subvalue ) { $ value [ $ key ] = wpcw_remove_number_precision_deep ( $ subvalue ) ; } } else { $ value = wpcw_remove_number_precision ( $ value ) ; } return $ value ; }
Remove precision from an array of number and return an array of int.
Remove precision from an array of number and return an array of int .