Published on : August 31, 2020
Title: In Array
Purpose :To check the values exist
Syntax :[php.in_array p1=”{value}” p2=”{array}” o.set=template.res /]
Input Parameter :value to check, array in which you want to check the element
Return value :true, false
Example :
[template.set_array x a1=1 a2=2 a3=3 /] [php.in_array p1=”2″ p2=”{template.x}” o.set=template.res /] [template.echo res /]
Output :true or false
Description: We can the value is exist in array using this function