User Tools

Site Tools


uphp:functions:strval

Differences

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

Link to this comparison view

Next revision
Previous revision
uphp:functions:strval [2017/03/28 21:02]
jeff created
uphp:functions:strval [2021/09/13 05:57] (current)
Line 3: Line 3:
 <badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> <badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge>
  
-Return the string equivalent of a number+<html>Return the <b><span style="color:green">string<span style="color:black"></b> equivalent of a <b><span style="color:green">number<span style="color:black"></b></html>
  
 ====Description==== ====Description====
  
-<well size="sm"><html><span style="font-size:125%;color:green;">string +<well size="sm"><html> 
-<span style="color:black;"></html>[[strval]] +<span style="font-size:125%;color:green">string 
-<html><span style="color:green;">mixed +<span style="color:black">strval ( 
-<span style="color:blue;">$value +<span style="color:green">mixed 
-<span style="color:black;">)+<span style="color:blue">$value 
 +<span style="color:black">)
 </html></well> </html></well>
  
-Type cast an integer or float variable into a string variable+Type cast an <html><b><span style="color:green">integer<span style="color:black"></b> or <b><span style="color:green">float<span style="color:black"></b> variable into a <b><span style="color:green">string<span style="color:black"></b> variable</html>
  
 ====Parameter==== ====Parameter====
-<html><span style="color:blue;"><b>$value</b><span style="color:black;"></html>:  A number (int or float) 
  
-====Return Value==== +<html><b><span style="color:blue">$value<span style="color:black"></b>:  A <b><span style="color:green">number<span style="color:black"></b> (<b><span style="color:green">int<span style="color:black"></b> or <b><span style="color:green">float<span style="color:black"></b>)</html> 
-^<html><span style="color:blue;"><b>$value<span style="color:black;"> TYPE</html>^RETURN VALUE^ + 
-|<html><span style="color:green;">int<span style="color:black;"> or <span style="color:green;">float</html>|String equivalent (this is the main use of this function)| +====Return Values==== 
-|<html><span style="color:green;">array</html>|Empty string| + 
-|<html><span style="color:green;">string</html>|String (unchanged)|+^<html><span style="color:blue"><b>$value<span style="color:black"> TYPE</html>^RETURN VALUE^ 
 +|<html><b><span style="color:green">int<span style="color:black"></b> or <b><span style="color:green">float</b></html>|<html><b><span style="color:green">String<span style="color:black"></b> equivalent (this is the main use of this function)</html>
 +|<html><b><span style="color:green">array</b></html>|<html>Empty <b><span style="color:green">string<span style="color:black"></b></html>
 +|<html><b><span style="color:green">string</b></html>|<html><b><span style="color:green">String<span style="color:black"></b> (unchanged)</html>|
  
 ====Examples==== ====Examples====
Line 62: Line 65:
 ====Note==== ====Note====
  
-This function performs no formatting on the returned value. If you are looking for a way to format a numeric value as a string, please see:+This function performs no formatting on the returned value. If you are looking for a way to format a numeric value as a <html><b><span style="color:green">string<span style="color:black"></b></html>, please see:
  
-[[number_format()]] - Format the number with the specified number of digits of precision+[[number_format()]] - Format the <html><b><span style="color:green">number<span style="color:black"></b></html> with the specified number of digits of precision
  
-[[print(f)]] - Print a formatted string to standard output+[[print(f)]] - Print a formatted <html><b><span style="color:green">string<span style="color:black"></b></html> to standard output
  
-[[sprintf()]] - Format a string using the format specified using the passed parameters and return a string+[[sprintf()]] - Return formatted <html><b><span style="color:green">string</b></html>
  
-[[strftime()]] - Format the passed time using the format string+[[strftime()]] - Format a Linux Timestamp using format <html><b><span style="color:green">string</b></html>
  
 ====See Also==== ====See Also====
  
-[[intval()]] - Return the integer value of a number or string+[[intval()]] - <html>Return the <b><span style="color:green">integer<span style="color:black"></b> value of a <b><span style="color:green">number<span style="color:black"></b> or <b><span style="color:green">string<span style="color:black"></b></html>
  
-[[floatval()]] - Return the floating point value of a number or string+[[floatval()]] - <html>Return the <b><span style="color:green">float<span style="color:black"></b> value of a <b><span style="color:green">number<span style="color:black"></b> or <b><span style="color:green">string<span style="color:black"></b></html>
  
-[[is_numeric()]] - Return 1 if the value is numeric (integer, float or numeric string)+[[is_numeric()]] - <html>Check if 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>
  
 [[uphp:variables|uPHP Variable Types and Limits]] [[uphp:variables|uPHP Variable Types and Limits]]
  
uphp/functions/strval.1490734922.txt.gz · Last modified: 2021/09/13 05:56 (external edit)