identify
Identifies the variable form (existence of structure or array). If the variable does not exist, then "not found" will be returned.
Indirect parameter passing is disabled
1
No. | Type | Description |
---|---|---|
1 code |
variable :string |
Variable to check |
Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
string | variable form One of the following:
|
a[] = 1;
b[a] = 2;
dim(c[], 1, 3);
echo( identify(a[])); // Returns simple
echo( identify(b[])); // Returns structure
echo( identify(b[a])); // Returns simple
echo( identify(c[])); // Returns array
echo( identify(d[])); // Returns not found
delete( b[a] );
echo( identify(b[])); // Returns zero members
simple
structure
simple
array
not found
zero members