This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
dev:browsercaps [2008/01/24 09:12]
ravithb created
dev:browsercaps [2009/07/06 20:36] (current)
Line 15: Line 15:
 === Usage === === Usage ===
-The following example was extracted from [[http://garetjax.info/projects/browscap/#example]]+In order to use the browser capabilities library it needs to be included. 
 +<code php> 
 +    global $global; 
 +    include_once ($global['approot']."inc/browser_caps.inc"); 
 +This will create a browser capabilities object and store it under the key 'bcaps' in $global. 
 +<code php> 
 +    $global['bcaps'] // The browser capabilities object will be stored here. 
 +The following shows the fields of the browser capabilities object. ref: [[http://garetjax.info/projects/browscap/#example]]
 <code> <code>
 stdClass Object stdClass Object

QR Code
QR Code dev:browsercaps (generated for current page)