public/wordpress/wp-content/plugins/wp-courseware/includes/functions/core.php
/**
 * Add precision to an array of number and return an array of int.
 *
 * @since 4.5.0
 *
 * @param array $value Number to add precision to.
 * @param bool  $round Should we round after adding precision?.
 *
 * @return int
 */
Add precision to an array of number and return an array of int.

@param array $value Number to add precision to.
@param bool  $round Should we round after adding precision?.

@return int
Add precision to an array of number and return an array of int . @param array $value Number to add precision to . @param bool $round Should we round after adding precision? . @return int
function wpcw_add_number_precision_deep( $value, $round = true ) {
	if ( is_array( $value ) ) {
		foreach ( $value as $key => $subvalue ) {
			$value[ $key ] = wpcw_add_number_precision_deep( $subvalue, $round );
		}
	} else {
		$value = wpcw_add_number_precision( $value, $round );
	}
	return $value;
}
function wpcw_add_number_precision_deep ( $ value , $ round = true ) { if ( is_array ( $ value ) ) { foreach ( $ value as $ key => $ subvalue ) { $ value [ $ key ] = wpcw_add_number_precision_deep ( $ subvalue , $ round ) ; } } else { $ value = wpcw_add_number_precision ( $ value , $ round ) ; } return $ value ; }
Add precision to an array of number and return an array of int.
Add precision to an array of number and return an array of int .