This shows you the differences between two versions of the page.
uphp:functions:is_array [2017/05/08 14:29] jeff |
uphp:functions:is_array [2021/09/13 05:57] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======is_array====== | ||
- | |||
- | < | ||
- | |||
- | Check if a variable is an < | ||
- | |||
- | ====Description==== | ||
- | |||
- | <well size=" | ||
- | < | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | </ | ||
- | </ | ||
- | |||
- | Check to see if a variable or value is of type < | ||
- | |||
- | ====Parameter==== | ||
- | |||
- | < | ||
- | |||
- | ====Return Value==== | ||
- | |||
- | < | ||
- | |||
- | ====Examples==== | ||
- | |||
- | <code php> | ||
- | <? | ||
- | $x=1; | ||
- | print(is_array($x)); | ||
- | $y=array(" | ||
- | print(is_array($y)); | ||
- | ?> | ||
- | </ | ||
- | |||
- | ====Notes==== | ||
- | |||
- | This function checks ONLY the type of the variable, not the data that it holds! | ||
- | |||
- | ====See Also==== | ||
- | |||
- | [[is_int()]] - Check if a variable is an < | ||
- | |||
- | [[is_float()]] - Check if a variable is a < | ||
- | |||
- | [[is_string()]] - Check if a variable is a < | ||
- | |||
- | [[is_numeric()]] - < | ||
- | |||
- | [[isset()]] - Check if a variable exists | ||
- | |||
- | [[uphp: | ||
- | |||
- | [[array()]] - Create an < | ||