strval
Intervention/image
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Get string value of a variable
strval
(
mixed $value
):
string
public function
testStringConversion
()
{
$img
=
$this
->
manager
()->
make
(
'tests/images/trim.png'
);
$value
=
strval
(
$img
);
$this
->
assertInternalType
(
'string'
,
$value
);
}
tests/GdSystemTest.php
public function
testStringConversion
()
{
$img
=
$this
->
manager
()->
make
(
'tests/images/trim.png'
);
$value
=
strval
(
$img
);
$this
->
assertInternalType
(
'string'
,
$value
);
}
tests/ImagickSystemTest.php