Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
added 10 characters in body
Source Link
CPPUIX
  • 2.4k
  • 8
  • 17
  • 38

You just have to change the second line of your second code-block from:

{% if myVar is in_array(array_keys(someOtherArray)) %} # or {% if myVar in someOtherArray|keys %} 

inin is the containment-operator, and keyskeys, is a filter that returns an arrays keys.

You just have to change the second line of your second code-block from

{% if myVar is in_array(array_keys(someOtherArray)) %} # or {% if myVar in someOtherArray|keys %} 

in is the containment-operator and keys a filter that returns an arrays keys.

You just have to change the second line of your second code-block from:

{% if myVar is in_array(array_keys(someOtherArray)) %} # or {% if myVar in someOtherArray|keys %} 

in is the containment-operator, and keys, is a filter that returns an arrays keys.

You just have to change the second line of your second code-block from

{% if myVar is in_array(array_keys(someOtherArray)) %} 

to

{% if myVar in someOtherArray|keys %} 
{% if myVar is in_array(array_keys(someOtherArray)) %} # or {% if myVar in someOtherArray|keys %} 

in is the containment-operator and keys a filter that returns an arrays keys.

You just have to change the second line of your second code-block from

{% if myVar is in_array(array_keys(someOtherArray)) %} 

to

{% if myVar in someOtherArray|keys %} 

in is the containment-operator and keys a filter that returns an arrays keys.

You just have to change the second line of your second code-block from

{% if myVar is in_array(array_keys(someOtherArray)) %} # or {% if myVar in someOtherArray|keys %} 

in is the containment-operator and keys a filter that returns an arrays keys.

You just have to change the second line of your second code-block from

{% if myVar is in_array(array_keys(someOtherArray)) %} 

to

{% if myVar in someOtherArray|keys %} 

inin is the containment-operator and keyskeys a filter that returns an arrays keys.

You just have to change the second line of your second code-block from

{% if myVar is in_array(array_keys(someOtherArray)) %} 

to

{% if myVar in someOtherArray|keys %} 

in is the containment-operator and keys a filter that returns an arrays keys.

You just have to change the second line of your second code-block from

{% if myVar is in_array(array_keys(someOtherArray)) %} 

to

{% if myVar in someOtherArray|keys %} 

in is the containment-operator and keys a filter that returns an arrays keys.

Loading
Source Link
Raffael
  • 20.1k
  • 16
  • 93
  • 169
Loading