title: Smarty in_array value
body: <p>I have array like this </p>
  
  <pre><code>{
       "sCode":"05",
       "sCodeName":"critical_tight_connection",
       "iSeverity":1,
       "aData":{
           "iLevelOfDetailt":2,
           "iDuration":35,
           "sLabel":"Labai trumpas pers\u0117dimas, 35 min.",
           "sLink":""
       }
  }
  </code></pre>
  
  <p>i am printing him with smarty (array is not serialized, i ve did it for your сonveniece)</p>
  
  <pre><code>{if !empty( $aSegment.aNotices.aStop )}
      &lt;ul&gt;
          {foreach from=$aSegment.aNotices.aStop item=aNotice}
              &lt;li&gt;
                  &lt;img class="{$aNotice.sCodeName}" /&gt;
                  {$aNotice.sLabel}
              &lt;/li&gt;
          {/foreach}
      &lt;/ul&gt;
  {/if}
  </code></pre>
  
  <p>how to check with smarty if '05' is exist in aNotices.aStop.sCode ? (before foreach cycle)</p>
  
  <p>Tried this</p>
  
  <pre><code>{if in_array('05', $aSegment.aNotices.aStop)}
      exist
  {/if}
  </code></pre>