답변 3개
채택된 답변
+20 포인트
간단한 방법 3가지 소개합니다.
Copy
$data = implode('구분자', $_REQUEST['friend']);
$restore = explode('구분자', $data);
$data = serialize($_REQUEST['friend']);
$restore = unserialize($data);
$data = json_encode($_REQUEST['friend'], JSON_UNESCAPED_UNICODE); // PHP v5.4 미만은 뒤 옵션 제외
$restore = json_decode($data, 1);
* $_REQUEST는 특성을 이해하고 사용할 것.
An associative array that by default contains the contents of $_GET, $_POST and $_COOKIE.
답변을 작성하려면 로그인이 필요합니다.