WordPress at a glance
function is not described

WC_Legacy_Coupon::format_array() public WC 1.0

Format loaded data as array.

{} It's a method of the class: WC_Legacy_Coupon{}

No Hooks.

Return

Array.

Usage

$WC_Legacy_Coupon = new WC_Legacy_Coupon();
$WC_Legacy_Coupon->format_array( $array );
$array *(string array) (required)*

Code of WC_Legacy_Coupon::format_array() WC 5.0.0

<?php
public function format_array( $array ) {
	wc_deprecated_function( 'WC_Coupon::format_array', '3.0' );
	if ( ! is_array( $array ) ) {
		if ( is_serialized( $array ) ) {
			$array = maybe_unserialize( $array );
		} else {
			$array = explode( ',', $array );
		}
	}
	return array_filter( array_map( 'trim', array_map( 'strtolower', $array ) ) );
}