This shows you the differences between two versions of the page.
uphp:functions:is_string [2017/04/06 12:46] jeff |
uphp:functions:is_string [2021/09/13 05:57] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======is_string====== | ||
- | |||
- | < | ||
- | |||
- | Check if a variable is a < | ||
- | |||
- | ====Description==== | ||
- | |||
- | <well size=" | ||
- | < | ||
- | <span style=" | ||
- | <span style=" | ||
- | </ | ||
- | [[is_string]] ( | ||
- | < | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | </ | ||
- | </ | ||
- | |||
- | Check to see if a variable or value is of type < | ||
- | |||
- | ====Parameter==== | ||
- | |||
- | < | ||
- | |||
- | ====Return Value==== | ||
- | |||
- | 1 (true) if a < | ||
- | |||
- | ====Examples==== | ||
- | |||
- | <code php> | ||
- | <? | ||
- | $x=1.0; | ||
- | print(is_string($x)); | ||
- | $y=" | ||
- | print(is_string($y)); | ||
- | $z='' | ||
- | print(is_string($z)); | ||
- | ?> | ||
- | </ | ||
- | |||
- | ====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_numeric()]] - Check if a value is numeric (< | ||
- | |||
- | [[is_array()]] - Check if a variable is an < | ||
- | |||
- | [[isset()]] - Check if a variable exists | ||
- | |||
- | [[uphp: | ||