I am not great at PHP but can write basic code… Normally, i am able to do things at my own but i am stuck in a problem now.
I have this array and i need to access it’s values… the function is not directly available and i am emailing myself the information.
so, if i do [B]var_export($visitor, true)[I]$visitor
Any tips?
Thank to anyone for helping in advance.
[code=php]PiwikTrackerVisitor::__set_state(array(
‘visitorKnown’ => true,
‘request’ =>
PiwikTrackerRequest::__set_state(array(
‘params’ =>
array (
‘action_name’ => ”,
‘idsite’ => ‘1’,
‘rec’ => ‘1’,
‘r’ => ‘489206’,
‘h’ => ’12’,
‘m’ => ’25’,
‘s’ => ’54’,
‘url’ => ”,
‘urlref’ => ”,
‘_id’ => ‘8a877ccc74f01a3c’,
‘_idts’ => ‘1414531240’,
‘_idvc’ => ‘2’,
‘_idn’ => ‘0’,
‘_refts’ => ‘0’,
‘_viewts’ => ‘1414538938’,
‘cs’ => ‘windows-1252’,
‘pdf’ => ‘1’,
‘qt’ => ‘0’,
‘realp’ => ‘0’,
‘wma’ => ‘1’,
‘dir’ => ‘0’,
‘fla’ => ‘1’,
‘java’ => ‘1’,
‘gears’ => ‘0’,
‘ag’ => ‘0’,
‘cookie’ => ‘1’,
‘res’ => ‘1920×1080’,
‘gt_ms’ => ‘382’,
),
‘isAuthenticated’ => false,
‘tokenAuth’ => NULL,
‘timestamp’ => 1414599957,
)),
‘visitorInfo’ =>
array (
‘location_ip’ => ‘111’,
‘idvisitor’ => ’11’,
‘visit_last_action_time’ => 1414599957,
‘visit_first_action_time’ => 1414599923,
‘idvisit’ => ‘2’,
‘user_id’ => NULL,
‘visit_exit_idaction_url’ => 1,
‘visit_exit_idaction_name’ => ‘0’,
‘visitor_returning’ => ‘1’,
‘visitor_days_since_first’ => ‘1’,
‘visitor_days_since_order’ => ‘0’,
‘visitor_count_visits’ => ‘2’,
‘visit_goal_buyer’ => ‘0’,
‘location_country’ => ‘us’,
‘location_region’ => NULL,
‘location_city’ => NULL,
‘location_latitude’ => NULL,
‘location_longitude’ => NULL,
‘referer_name’ => ”,
‘referer_keyword’ => ”,
‘referer_type’ => ‘1’,
‘location_browser_lang’ => ‘en-us,en’,
‘visit_total_events’ => ‘0’,
‘visit_total_time’ => 35,
‘visit_total_actions’ => ‘visit_total_actions + 1’,
‘visit_total_searches’ => ‘0’,
‘time_spent_ref_action’ => 34,
),
‘configId’ => ”,
‘customVariables’ =>
array (
),
))