Answers for "php too string"

PHP
2

php int to string

$number = 11;
// This
echo strval($number);
// Or This
echo (String) $number;
// Output
// "11"
// "11"
Posted by: Guest on October-29-2020
0

php object to string

__toString() & {$this->name}
Posted by: Guest on June-27-2020

Browse Popular Code Answers by Language