|==={a}

The |==={value} filter is used to check whether the filtered element is identical to the value, i.e. has the same value and the same PHP type.

Unlike the |=={value} filter, the type of the 2 elements is tested: this can be useful when the values being compared are potentially equal according to ’==’ but of different types. For example, the boolean false and the empty string.


See also filter |=={a}

Author jack Published :

Translations : English, français