Strings quoted_printable_encode
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
quoted_printable_encode — 8비트 문자열을 따옴표 붙은 인쇄 가능한 문자열로 변환
설명
quoted_printable_encode(string $string
): string
» RFC2045, 섹션 6.7에 따라 생성된 따옴표 붙은 인쇄 가능한 문자열을 반환합니다.
이 함수는 IMAP 모듈이 작동할 필요가 없다는 점을 제외하고는 imap_8bit()와 유사합니다.
매개변수
string
- 입력 문자열입니다.
반환 값
인코딩된 문자열을 반환합니다.
Examples
예제 #1 quoted_printable_encode() 예제
<?php
$encoded = quoted_printable_encode('Möchten Sie ein paar Äpfel?');
var_dump($encoded);
var_dump(quoted_printable_decode($encoded));
?>
위의 예는 다음을 출력합니다.
string(37) "M=C3=B6chten Sie ein paar =C3=84pfel?" string(29) "Möchten Sie ein paar Äpfel?"
기타
- quoted_printable_decode() - 따옴표로 묶인 인쇄 가능한 문자열을 8비트 문자열로 변환
- iconv_mime_encode() - MIME 헤더 필드를 구성합니다.