Device properties can be fetched with the fiftyone_degrees_get_properties function:
$p = fiftyone_degrees_get_properties($_SERVER['HTTP_USER_AGENT']);
echo "Total properties in array: ".sizeof($p);
The function takes user agent string as a parameter and returns an array of properties and their values, like the $_51d variable in the pure PHP API. The above snippet produces the following result using the Lite data file:
Points to Note
The 51 Degrees data file needs to be refreshed on a regular basis in order to keep it current. This is best achieved by running a CRON job on the Linux server. Details of how to do this can be obtained here. Additionally, a PHP script can be used to obtain meta data information. By default all property values are returned as strings.