This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
uphp:functions:is_numeric [2017/04/10 13:51] jeff |
uphp:functions:is_numeric [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ** | + | ======is_numeric====== |
- | **======is_numeric====== | + | |
< | < | ||
- | Check if a value is numeric (< | + | < |
====Description==== | ====Description==== | ||
- | <well size=" | + | <well size=" |
- | < | + | |
<span style=" | <span style=" | ||
- | <span style=" | + | <span style=" |
- | </ | + | |
- | [[is_numeric]] ( | + | |
- | < | + | |
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
- | </ | + | </ |
- | </ | + | |
Check to see if a value is numeric | Check to see if a value is numeric | ||
Line 27: | Line 21: | ||
< | < | ||
- | ====Return | + | ====Return |
- | 1 (true) if numeric, 0 (false) if not numeric (arrays always return 0) | + | < |
====Examples==== | ====Examples==== | ||
Line 46: | Line 40: | ||
</ | </ | ||
- | **Set up an array of different types of values. Then iterate through the array and output | + | ===Set up an array of different types of values, iterate through the array, output type, value and whether is_numeric() returns true or false=== |
<code php> | <code php> |