"1234" 2 => "1234" ] In twig I want to check if all element are same return true else return false" /> "1234" 2 => "1234" ] In twig I want to check if all element are same return true else return false" /> "1234" 2 => "1234" ] In twig I want to check if all element are same return true else return false"/>

How to check that element in array are all same in twig?

123 Views Asked by At

I have following array:

array:3 [▼
  0 => "1234"
  1 => "1234"
  2 => "1234"
]

In twig I want to check if all element are same return true else return false.

0

There are 0 best solutions below