function existing, user function existing
... function existing ( function name )
Checks if the procedure function is existing. user function existing returns true only if the specified function name refers to an existing user procedure or function.
Indirect parameter passing is disabled
1
No. | Type | Description |
---|---|---|
1 input |
string | Name of existing user function Any string can be specified here |
Type | Description |
---|---|
boolean | returned value true if procedure or function (or user procedure or function) is existing |
define procedure (foo) { echo( Fool ); };
echo("Test if existing:");
echo(" foo : ", function existing( foo )); // user defined
echo(" bar : ", function existing( bar )); // not existing
echo(" abs : ", function existing( abs )); // existing
echo(new line, "Test if user function:");
echo(" foo : ", user function existing( foo )); // user defined
echo(" bar : ", user function existing( bar )); // not existing
echo(" abs : ", user function existing( abs )); // existing
Test if existing:
foo : true
bar : false
abs : true
Test if user function:
foo : true
bar : false
abs : false