referrer()
Returns: | Detected referrer or an empty string |
---|---|
Return type: | string |
The referrer, if the user agent was referred from another site. Typically you’ll test for this as follows:
1 2 3 4 | if ( $this ->agent->is_referral()) { echo $this ->agent->referrer(); } |
Please login to continue.