I've just came across this post mentioning that echo
can only print string(s), that's why we cannot print the full array. But, we can easily echo integers and floats etc like this:
$int = 3; $float = 3.456;
echo $int, "</br>", $float;
I was just wondering does echo
cast these variables to string
type behind the scenes?
Thank you.