Answers for "how to access string values in php"

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

Code answers related to "how to access string values in php"

Browse Popular Code Answers by Language