What is the difference between doing a (string)
cast and strval()
in PHP? Which should I use?
(string)$value
strval($value)
A value can be converted to a string using the (string) cast or the strval() function.
ā https://www.php.net/manual/en/language.types.string.php#language.types.string.casting
Looks the same to me.