strval Function in PHP

What is strval() in PHP?

Explanation

PHP strval function is used to get a string value from the given input.

Syntax:


strval(var_name)

Example :


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

Result :

11.010

PHP Topics


Ask Questions

Ask Question