|
Action |
Searches an array for an element containing the same value as an expression.
|
Syntax |
ASCAN (array, expression, start, length)
|
Parameters |
Array
Name of the array to search.
Expression
Specifies the expression to search for.
Start
Optional argument specifying the element number at which the search begins. The element number you specify is included in the search.
Length
Optional value specifying the number of elements to scan. If you omit this value, the search continues to the last array element.
|
Returns |
|
>=0 |
ID of the element that matches the expression. |
|
-1 |
Expression not present in array |
|
Example |
$Array = 1,2,3,5,7,11,13
$x = ASCAN($Array, 3) ; will return '2'