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