You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am currently using the Browscap class within one of my projects and when installing it the first time, I was wondering why the default indexes where camelcase instead of lowercase.
Somehow I expected the indexes to be lowercase as the php get_browser() function returns them as lowercase too.
Is there a special reason why the default was chosen not to be lowercase?
If this propasal seems weird or senseless to you, please do not hesitate to trash it.
The text was updated successfully, but these errors were encountered:
This is supported by setting the lowercase properties to true whenever you instantiate the object
/**
* Flag to enable only lowercase indexes in the result.
* The cache has to be rebuilt in order to apply this option.
*
* @var bool
*/
public $lowercase = false;
It would be nice to mention this in the documentation for drop-in get_browser() support.
Hello, I am currently using the Browscap class within one of my projects and when installing it the first time, I was wondering why the default indexes where camelcase instead of lowercase.
Somehow I expected the indexes to be lowercase as the php get_browser() function returns them as lowercase too.
Is there a special reason why the default was chosen not to be lowercase?
If this propasal seems weird or senseless to you, please do not hesitate to trash it.
The text was updated successfully, but these errors were encountered: