Str::wrap()
Wraps the string with the given string(s)
Parameters
Name | Type | Default | Description |
---|---|---|---|
$string * | string |
– | String to wrap |
$before * | string |
– | String to prepend |
$after | string |null |
null |
String to append (if different from $before ) |
Return type
string