How to convert any data type into string value in PHP

Leave a Comment

strval() function is used to convert any data type value of PHP into string value and will return string value.

Syntax
string strval(mixed $var)

Example
<?php
$var_name = 22.110;
echo strval ($var_name);
?>

0 comments:

Post a Comment