How to convert a value to a string in PHP
A value can be converted to a string using the (string) casting.
$textVariable = (string) $variable;
A value can be converted to a string using the (string) casting.
$textVariable = (string) $variable;
Log in or create a user account to post a comment.