I created a array using PHP
$userarray = array('UserName'=>$username,'UserId'=>$userId,'UserPicURL'=>$userPicURL);
How can I convert this array into a string in PHP and back from string into an array. This is kind of a requirement. Could someone please advice on how this can be acheived.