24/7 Support: 800.608.6482

Get Started

Developer Docs

miva_array_filter_ref

MivaScript Builtin Function, Miva Merchant 9+

Tag / Description

miva_array_filter_ref( array var, offset, element var, filter_expression, output var )

<mvt:assign name="g.return_value" value="miva_array_filter_ref( array var, offset, element var, filter_expression, output var )" />

Iterate through an array starting at a given offset, execute a filter expression against each element, and create a new member with references to the members in the output array. See also miva_array_filter.

Parameters

  • array var

    Source array of structures.

  • offset

    index in the array to start filtering from.

  • element var

    Name of a variable to reference in the filter expression.

  • filter_expression

    Text of an expression to execute based on the individual array element.

  • output var

    Output array of all structures that tested true in the filter expression.

Return Values

Examples

Miva believes that all online businesses should have access to a scalable ecommerce platform that can meet their unique business requirements. Miva offers PCI compliant ecommerce, hosting, and custom website design and development solutions. Miva customers have processed over $100 billion in online sales since 1997.

Copyright © 2016 Miva, Inc - All Rights Reserved   Privacy Policy | Store Policy

Links
Contact Us
Receive Tips & Updates

Copyright © 2016 Miva, Inc - All Rights Reserved

Back To The Top