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