strval

(FW >= 1.0)

strval- Get the string value of a variable

Description

string strval ($var)
This function will return the string equivalent of the variable $var

Parameters

$var - a string, int or float value

Return Value

The string value of var on success, or 0 if unable to computer.

Examples

<? 
$f = 1.05;
// converts the float $f into a string
$str = strval($f);
print("The string value of ".$f." is ".$str); 
?>