Welcome Guest, Not a member yet? Register   Sign In
Difference between $this->agent->agent_string and $this->input->user_agent()
#1

[eluser]Chalda Pnuzig[/eluser]
What is the difference?
#2

[eluser]InsiteFX[/eluser]
Code:
$this->agent->agent_string()

// Returns a string containing the full user agent string. Typically it will be something like this:
// Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.0.4) Gecko/20060613 Camino/1.0.2

$this->input->user_agent()

// Returns the user agent (web browser) being used by the current user. Returns FALSE if it's not available.
echo $this->input->user_agent();

InsiteFX
#3

[eluser]Chalda Pnuzig[/eluser]
Ok, I found it:
Code:
$this->agent->agent_string()  // returns NULL if it's not available

$this->input->user_agent()  // returns FALSE if it's not available




Theme © iAndrew 2016 - Forum software by © MyBB