How do I convert the value of a PHP variable to string?
(如何将PHP变量的值转换为字符串?)
I was looking for something better than concatenating with an empty string:
(我在寻找比连接空字符串更好的东西:)
$myText = $myVar . '';
Like the ToString()
method in Java or .NET.
(类似于Java或.NET中的ToString()
方法。)