PHP Manual
Prev |  | Next

# strval

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

strval -- Get string value of a variable

## Description

``string strval` (mixed var)`

Returns the string value of `var`. See the documentation on string for more information on converting to string.

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

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

Prev | Home | Next
settype | Up | unserialize