Gen. partnerAlgotech

PHP function settype()

Set the type of a variable

|
September 11, 2019

Availability in PHP 4.0

Set the type of a variable

Parameters

Parameter Data type Default value Note
$var mixed not The variable being converted.
$type string not Possible values of type are:

Return values

bool

Returns true on success, otherwise false on failure.

Other resources

Official documentation for the settype function

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.