WireArray::implode() - ProcessWire API

WireArray::implode()

Combine all elements into a delimiter-separated string containing the given property from each item

Similar to PHP's implode() function.

Usage

// basic usage
$string = $wireArray-&gtimplode(string $delimiter);

// usage with all arguments
$string = $wireArray-&gtimplode(string $delimiter, $property = '', array $options = []);

Arguments

Return value

string

See Also


WireArray methods and properties

API reference based on ProcessWire core version 3.0.267