This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
uphp:functions:isset [2017/03/31 13:44] jeff |
uphp:functions:isset [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
< | < | ||
- | Return 1 if the variable exists | + | Check if a variable exists |
====Description==== | ====Description==== | ||
- | <well size=" | + | <well size=" |
- | <span style=" | + | <span style=" |
- | < | + | <span style=" |
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
Line 19: | Line 19: | ||
====Parameter==== | ====Parameter==== | ||
- | < | + | <html><b>< |
- | ====Return | + | ====Return |
- | 1 (true) if variable exists, 0 (false) if variable does not exist | + | < |
====Examples==== | ====Examples==== | ||
Line 50: | Line 50: | ||
====Notes==== | ====Notes==== | ||
- | There is no way to unset a variable once it has been set (except to exit the local scope or script where it was defined). Unlike mainline PHP, uPHP does not have a construct '' | + | There is no way to unset a variable once it has been set (except to exit the local scope or script where it was defined). Unlike mainline PHP, uPHP does not have a construct '' |
Also note that the uPHP [[isset()]] does not always generate a parsing error if the parameter is not a variable((See http:// | Also note that the uPHP [[isset()]] does not always generate a parsing error if the parameter is not a variable((See http:// | ||
Line 81: | Line 81: | ||
====See Also==== | ====See Also==== | ||
- | [[is_int()]] - Return 1 if the variable is an integer | + | [[is_int()]] - Check if a variable is an < |
- | [[is_float()]] - Return 1 if the variable is a float | + | [[is_float()]] - Check if a variable is a < |
- | [[is_numeric()]] - Return 1 if the value is numeric (integer, float or numeric string) | + | [[is_numeric()]] - < |
- | [[is_array()]] - Return 1 if the variable is an array | + | [[is_array()]] - Check if a variable is an < |
- | [[is_string()]] - Return 1 if the variable is a string | + | [[is_string()]] - Check if a variable is a < |
[[uphp: | [[uphp: | ||