codeigniter device
$this->load->library('user_agent');
if ($this->agent->is_browser())
{
$agent = $this->agent->browser().' '.$this->agent->version();
}
elseif ($this->agent->is_robot())
{
$agent = $this->agent->robot();
}
elseif ($this->agent->is_mobile())
{
$agent = $this->agent->mobile();
}
else
{
$agent = 'Unidentified User Agent';
}
echo $agent;
echo $this->agent->platform(); // Platform info (Windows, Linux, Mac, etc.)
Also in PHP:
- Does ,date('Y-m-d H:i:s') grab local pc or server pc time
- check string exist in php
- check if home page woocmerce
- How to format date from datetime php
- check for character in string php
- explode a number php
- convert date object to string php
- DESC laravel
- assign php array into javascript
- $ php artisan route list
- Laravel route not calling function of controller
- base64 encode php and decode
- Expression #1 of ORDER BY contains aggregate function and applies to the result of a non-aggregated query laravel
- ERROR: Module mpm_event is enabled - cannot proceed due to conflicts. It needs to be disabled first! Considering conflict mpm_worker for mpm_prefork: ERROR: Could not enable dependency mpm_prefork for php7.2, aborting
- det day in php
- Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in \xampp\htdocs\
- check isset key in array php
- codeigniter get last inserted id with where condition
- check sting contsin sub sting php
- datae php
- How to create and access angular HTTP params in PHP
- create random set of strings PHP
- find or fail laravel
- PHP try catch all exceptions