Determine the user agent in PHP Codeigniter

We can use the following code to determine the user agent of the user. This will return the user agent of the user’s web browser; if one isn’t available it will return FALSE.

echo $this->input->user_agent();

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.