User Tools

Site Tools


uphp:functions:strval

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:strval [2017/04/04 14:21]
jeff
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 <html><b><span style="color:green">string<span style="color:black"></b></html> equivalent of a <html><b><span style="color:green">number<span style="color:black"></b></html>+<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:green">mixed
 <span style="color:blue">$value <span style="color:blue">$value
 <span style="color:black">) <span style="color:black">)
 </html></well> </html></well>
  
-Type cast an <html><b><span style="color:green">integer<span style="color:black"></b></html> or <html><b><span style="color:green">float<span style="color:black"></b></html> variable into a <html><b><span style="color:green">string<span style="color:black"></b></html> 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><b><span style="color:blue">$value<span style="color:black"></b></html>:  A <html><b><span style="color:green">number<span style="color:black"></b></html> (<html><b><span style="color:green">int<span style="color:black"></b></html> or <html><b><span style="color:green">float<span style="color:black"></b></html>)+<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>
  
-====Return Value====+====Return Values====
  
 ^<html><span style="color:blue"><b>$value<span style="color:black"> TYPE</html>^RETURN VALUE^ ^<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>|String equivalent (this is the main use of this function)| +|<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>|Empty string| +|<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>|String (unchanged)|+|<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 70: Line 71:
 [[print(f)]] - Print a formatted <html><b><span style="color:green">string<span style="color:black"></b></html> 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 <html><b><span style="color:green">string<span style="color:black"></b></html> using the format specified using the passed parameters and return a <html><b><span style="color:green">string<span style="color:black"></b></html>+[[sprintf()]] - Return formatted <html><b><span style="color:green">string</b></html>
  
-[[strftime()]] - Format the passed time using the format <html><b><span style="color:green">string<span style="color:black"></b></html>+[[strftime()]] - Format a Linux Timestamp using format <html><b><span style="color:green">string</b></html>
  
 ====See Also==== ====See Also====
  
-[[intval()]] - Return the <html><b><span style="color:green">integer<span style="color:black"></b></html> value of a <html><b><span style="color:green">number<span style="color:black"></b></html> or <html><b><span style="color:green">string<span style="color:black"></b></html>+[[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 <html><b><span style="color:green">float<span style="color:black"></b></html> value of a <html><b><span style="color:green">number<span style="color:black"></b></html> or <html><b><span style="color:green">string<span style="color:black"></b></html>+[[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 (<html><b><span style="color:green">int<span style="color:black"></b></html>, <html><b><span style="color:green">float<span style="color:black"></b></html> or numeric <html><b><span style="color:green">string<span style="color:black"></b></html>)+[[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.1491315708.txt.gz · Last modified: 2021/09/13 05:56 (external edit)