Answers for "make string in php"

PHP
14

integer to string php

return strval($integer);
Posted by: Guest on April-06-2020
1

php convert to string

<?php
class StrValTest
{
    public function __toString()
    {
        return __CLASS__;
    }
}

// Prints 'StrValTest'
echo strval(new StrValTest);
?>
Posted by: Guest on April-02-2020
0

strings php

returning portion of a string
Posted by: Guest on July-03-2020

Browse Popular Code Answers by Language