To access an object in PHP you use a pointer. For example when using Browscap (http://code.google.com/p/phpbrowscap/) extract the values like so
$current_browser->Parent;
September 18th, 2009 | Web Development
To access an object in PHP you use a pointer. For example when using Browscap (http://code.google.com/p/phpbrowscap/) extract the values like so
2 comments ↓
If you found this post useful click the share this button. Contribute below by adding a comment, no registration is required.
DCE Related Posts
Read Full Article...
Read Full Article...
This code shows how to strip http, www, or any suffixes like .com or .co.uk etc. Read Full Article...
ok but how to convert them to array?
You can cast an object to array like this $newArray = (array) $yourObject;
Leave a Comment