I thought i did something smart when i serialize($userinfo) and saved the serialized data in my db... $userinfo is a plain array. but how do i get a hold of the data so my javascript can use it?
tried
var userinfo = <?=unserialize(GetUserInfo(userId));?>;
GetUserInfo is a global function that fetches the serialized string from the db.