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/18 19:37] jeff |
uphp:functions:isset [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
======isset====== | ======isset====== | ||
+ | |||
< | < | ||
- | Return 1 if the variable exists | + | Check if a variable exists |
====Description==== | ====Description==== | ||
- | <well size=" | + | |
- | <span style=" | + | <well size=" |
- | < | + | <span style=" |
- | <span style=" | + | <span style=" |
- | <span style=" | + | <span style=" |
- | <span style=" | + | <span style=" |
+ | <span style=" | ||
</ | </ | ||
Determine if a variable is set | Determine if a variable is set | ||
- | ====Parameters==== | + | ====Parameter==== |
- | < | + | |
- | ====Return | + | < |
- | 1 (true) if variable exists, 0 (false) if variable does not exist | + | |
+ | ====Return | ||
+ | |||
+ | < | ||
====Examples==== | ====Examples==== | ||
+ | |||
<code php> | <code php> | ||
<? | <? | ||
Line 45: | 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 75: | Line 80: | ||
====See Also==== | ====See Also==== | ||
- | [[is_int()]] - Return 1 if the variable is an integer | ||
- | [[is_float()]] - Return 1 if the variable is a float | + | [[is_int()]] - Check if a variable is an < |
+ | |||
+ | [[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: | ||