Published on : August 31, 2020
Title | : | Array Search |
Purpose | : | To search the value in element and give the key element |
Syntax | : | [php.array_search p1=”{value}” p2=”{array}” o.set=template.res /] |
Input Parameter | : | Value for search and array |
Return value | : | Array key |
Example | : |
[template.set_array x a1=1 a2=2 a3=3 /]
[php.array_search p1=”2″ p2=”{template.x}” o.set=template.res /]
[template.echo res /]
|
Output | : | Array key |
Description | : | We can search the value in array using this function |