how to convert blob into string in php code example
Example 1: turn text file to string php
$fileContent = file_get_contents($url);
Example 2: php convert to string
<?php
class StrValTest
{
public function __toString()
{
return __CLASS__;
}
}
// Prints 'StrValTest'
echo strval(new StrValTest);
?>