Is there an effective and guaranteed way to turn an integer into a string in php 8?
The value needs to be a string to be sent in a JSON
I’ve tried strval($ean14), (string) $ean14, (string) $ean14 . ”, and all the other recommended ways, but it always returns an integer value.
New contributor
Geazi Teles Barbosa Junior is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.