Kunal P. answered 05/12/19
Tutor
New to Wyzant
Experienced Web Developer teaching programming languages.
You can use type casting instead.
eg. $myText = (string)$myVar;
OR
You can use strval method to get string value of a variable
eg $myText = strval($myVar);