Transform 'user_data' to array. |
[eluser]pisio[/eluser]
Hi, again , it's me :p How I can transform data from 'user_data' by ci_sessions table (table with data from session) to array .... ci_sessions.user_data Quote:a:3:{s:8:"username";s:4:"root";s:9:"logged_in";s:1:"1";s:4:"time";s:10:"1281412161";}to array ( 'username' => 'root', 'logged_in' => '1', 'time' => '1281412161' and more if there exist ); Sorry for my bad English. And 10x
[eluser]cahva[/eluser]
It is serialized. To unserialize it use unserialize() function
[eluser]pisio[/eluser]
[quote author="cahva" date="1281434769"]It is serialized. To unserialize it use unserialize() function [/quote]Tnx. I have no idea for existence thise function. |
Welcome Guest, Not a member yet? Register Sign In |