Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP strval() Function

PHP strval() Function

PHP Available FunctionsAvailable PHP Functions

strval() The function is used to get the string value of a variable.

PHP version requirement: PHP 4, PHP 5, PHP 7

Syntax


string strval ( mixed $var )

Parameter Description:

Return Value

Returns a string.

Example

Example

The output is:


int(123)
string(3) "123"

PHP Available FunctionsAvailable PHP Functions