toneee's avatar

Blade Check if variable is in Array

Hi All,

I am a little stuck with a blade template, I need to check if a variable is in an array, how would I do this? The array can vary in length. If the value is found in the array I need to output a string.

Thanks!

0 likes
4 replies
toneee's avatar

Didnt even think of that...Thanks guys, think it was another one of those problems ive spent too long looking at when there was a simple answer!

1 like

Please or to participate in this conversation.