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