PHP ToString() equivalent

Posted by Antoine Aubry on Stack Overflow See other posts from Stack Overflow or by Antoine Aubry
Published on 2008-08-26T13:56:49Z Indexed on 2010/06/16 7:12 UTC
Read the original article Hit count: 181

Filed under:
|
|

How do I convert the value of a PHP variable to string? I was looking for something better than concatenating with an empty string:

$myText = $myVar . '';

like the ToString() method in Java or .NET.

© Stack Overflow or respective owner

Related posts about php

Related posts about string