WooCommerce Code Reference

ArrayFlatten implements TransformerInterface

Flatten nested array.

Interfaces, Classes and Traits

TransformerInterface
An interface to define a transformer.

Table of Contents

transform()  : mixed|null
Search a given value in the array.
validate()  : mixed
Validate Transformer arguments.

Methods

transform()

Search a given value in the array.

public transform(mixed $value[, stdClass|null $arguments = null ][, string|null $default_value = array() ]) : mixed|null
Parameters
$value : mixed

a value to transform.

$arguments : stdClass|null = null

arguments.

$default_value : string|null = array()

default value.

Return values
mixed|null