Answers for "php to string object"

PHP
5

php to string

$number = 10;
// To convert this number to a string:
$numberString = (string)$number;
Posted by: Guest on October-30-2020
1

object to string php

(string)$yourObject;
Posted by: Guest on September-12-2020
0

php object to string

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

Browse Popular Code Answers by Language