Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4792671
WithAcceptedLanguages.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
519 B
Referenced Files
None
Subscribers
None
WithAcceptedLanguages.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Keruald\OmniTools\HTTP\Requests
;
trait
WithAcceptedLanguages
{
/**
* Gets the languages accepted by the browser, by order of priority.
*
* This will read the HTTP_ACCEPT_LANGUAGE variable sent by the browser in the
* HTTP request.
*
* @return string[] each item a language accepted by browser
*/
public
static
function
getAcceptedLanguages
()
:
array
{
return
AcceptedLanguages
::
fromServer
()->
getLanguageCodes
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Feb 28, 20:14 (9 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2436896
Default Alt Text
WithAcceptedLanguages.php (519 B)
Attached To
Mode
rKOT Keruald OmniTools
Attached
Detach File
Event Timeline
Log In to Comment