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

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


// 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: Gecko/20060613 Camino/1.0.2


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


[eluser]Chalda Pnuzig[/eluser]
Ok, I found it:
$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