Get a Demo
Table of contents

intersect_assoc

The intersect_assoc filter returns an array containing only the values that are in both arrays. The array keys are also used in the comparison.

This filter is unique to Aptuitiv. It is not part of the core Twig functionality.

Arguments Link

The intersect_assoc filter has the following signature.

intersect_assoc(array)
Argument Description
array The array to intersect with the original value.
Get Started With Aptuitiv