Home > PHP > Function > Variable handling > settype()

settype()

settype - Set the type of a variable

Syntax

bool settype ()

Arguments

-

Description

Set the type of variable var to type.

Version

PHP 4, 5

Return value

Returns TRUE on success or FALSE on failure.