User Tools

Site Tools


uphp:functions:is_array

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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====== 
- 
-<badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> 
- 
-Check if a variable is an <html><b><span style="color:green">array<span style="color:black"></b></html> 
- 
-====Description==== 
- 
-<well size="sm"> 
-<html> 
-<span style="font-size:125%;color:green">int 
-<span style="color:black">is_array ( 
-<span style="color:green">mixed 
-<span style="color:blue">$variable 
-<span style="color:black">) 
-</html> 
-</well> 
- 
-Check to see if a variable or value is of type <html><b><span style="color:green">array<span style="color:black"></b></html> 
- 
-====Parameter==== 
- 
-<html><b><span style="color:blue">$variable<span style="color:black"></b></html>:  Variable or expression to be evaluated 
- 
-====Return Value==== 
- 
-<html><b><span style="color:green">Integer<span style="color:black"></b>:  1 (true) if <b><span style="color:green">array<span style="color:black"></b>, 0 (false) if not an array</html> 
- 
-====Examples==== 
- 
-<code php> 
-<? 
-  $x=1; 
-  print(is_array($x)); // outputs 0 
-  $y=array("one"); 
-  print(is_array($y)); // outputs 1 
-?> 
-</code> 
- 
-====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 <html><b><span style="color:green">integer<span style="color:black"></b></html> 
- 
-[[is_float()]] - Check if a variable is a <html><b><span style="color:green">float<span style="color:black"></b></html> 
- 
-[[is_string()]] - Check if a variable is a <html><b><span style="color:green">string<span style="color:black"></b></html> 
- 
-[[is_numeric()]] - <html>Check if a value is numeric (<b><span style="color:green">int<span style="color:black"></b>, <b><span style="color:green">float<span style="color:black"></b> or numeric <b><span style="color:green">string<span style="color:black"></b>)</html> 
- 
-[[isset()]] - Check if a variable exists 
- 
-[[uphp:variables|uPHP Variable Types and Limits]] 
- 
-[[array()]] - Create an <html><b><span style="color:green">array<span style="color:black"></b></html>, with optional values 
  
uphp/functions/is_array.txt · Last modified: 2021/09/13 05:57 (external edit)