function multi($uid, $sid)
{ return array($uid, $sid); }
list($first,$second) = multi(1,2);
// The use of ' and " is importent !!!
function check_user($login,$password)
{
return '{"login":"'.$login.'","password":"'.$password.'","filename":"abc","arr":[{"id":"12345"}]}';
}
$a = check_user("Gideon","Koch"); // $a = a string
$b = json_decode($a); // $b a JSON object
print_r($b -> login);
print_r($b->arr[0]->id);