Str::toType()
Convert the string to the given type
Str::toType(string $string, mixed $type): mixed
Parameters
Name | Type | Default |
---|---|---|
$string * | string |
– |
$type * | mixed |
– |
Return type
mixed
Convert the string to the given type
Str::toType(string $string, mixed $type): mixed
Name | Type | Default |
---|---|---|
$string * | string |
– |
$type * | mixed |
– |
mixed