strval

strval -- Get string value of a variable.

Description

string strval(mixed var);

Returns the string value of var.

var may be any scalar type. You cannot use strval() on arrays or objects.

See also doubleval(), intval(), settype() and Type juggling.