When I print a Joomla session, I get the output of the array as shown below. Now I want to find compare_session , and all mtaching with this key needs to be stored separately with a comma. I will not use an array of forms with duplicate keys.
I need the output as follows:
281,147,136,96,46,30
Array ( [__default] => Array ( [session.counter] => 9 [session.timer.start] => 1376717892 [session.timer.last] => 1376718229 [session.timer.now] => 1376718247 [session.client.browser] => Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36 [registry] => JRegistry Object ( [data:protected] => stdClass Object ( ) ) [user] => JUser Object ( [isRoot:protected] => 1 [id] => 42 [name] => Manan [username] => Manan [email] => manan@letsnurture.com [password] => 3c4ebaabb8701e80c581c8a291c44073:Aegdm5ddVjEhkJjPIdFlLqj6QZCRnWFO [password_clear] => [usertype] => deprecated [block] => 0 [sendEmail] => 1 [registerDate] => 2012-10-15 02:03:41 [lastvisitDate] => 2013-08-17 05:38:12 [activation] => 0 [params] => {"admin_style":"","admin_language":"","language":"","editor":"","helpsite":"","timezone":""} [groups] => Array ( [8] => 8 ) [guest] => [lastResetTime] => 0000-00-00 00:00:00 [resetCount] => 0 [_params:protected] => JRegistry Object ( [data:protected] => stdClass Object ( [admin_style] => [admin_language] => [language] => [editor] => [helpsite] => [timezone] => ) ) [_authGroups:protected] => Array ( [0] => 1 [1] => 8 ) [_authLevels:protected] => Array ( [0] => 1 [1] => 1 [2] => 2 [3] => 3 ) [_authActions:protected] => [_errorMsg:protected] => [_errors:protected] => Array ( ) ) [session.token] => 0d79f30e557acf79cada5e55d837caf8 [breadcrumbs] => http:
Any ideas or suggestions? Thanks.
source share