ltrim
brefphp/bref
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Strip whitespace (or other characters) from the beginning of a string
ltrim
(
string $string
,
string $characters
=
" \n\r\t\v\x00"
):
string
public function
getProtocolVersion
():
string
{
return
ltrim
(
$this
->
getProtocol
(),
'HTTP/'
);
}
public function
getContentType
(): ?
string
src/Event/Http/HttpRequestEvent.php