Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12741258
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
Sun, Nov 16, 13:23 (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3121168
Default Alt Text
WithAcceptedLanguages.php (519 B)
Attached To
Mode
rKERUALD Keruald libraries development repository
Attached
Detach File
Event Timeline
Log In to Comment