<?phpuseGranam\String\StringObject;
useGranam\String\Exceptions\WrongParameterType;
$string = newStringObject(12345.678);
echo$string; // string '12345.678'try {
newStringObject(fopen('foo', 'rb'));
} catch (WrongParameterType$stringException) {
// Expected scalar or object with \_\_toString method on strict mode, got resource.die('Something get wrong: ' . $stringException->getMessage());
}Uh oh!
There was an error while loading. Please reload this page.
Latest commit
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|