Wednesday, October 8, 2025
HomeLanguagesPHP quoted_printable_encode() Function

PHP quoted_printable_encode() Function

The quoted_printable_encode() function is an inbuilt function in PHP which is used to convert an 8-bit string to a quoted printable string.

Syntax:

quoted_printable_encode( $str )

Parameters: This function accepts single parameter $str which is mandatory. It represents the 8-bit string which needs to be converted.

Return Value: This function returns the quoted printable string.

Below program illustrates the quoted_printable_encode() function in PHP:

Program:




<?php
  
// A simple PHP code to implement
// quoted_printable_encode() function
  
// Declare variable and initialize it
$string = 'Hëllo World!';
  
echo (quoted_printable_encode($string));
?>


Output:

H=C3=83=C2=ABllo World!

Application: The quoted_printable_encode() function can be used in mailing system to encode any message and later decode it using quoted_printable_decode() at receiver’s end.

Related Articles:

Reference: http://php.net/manual/en/function.quoted-printable-encode.php

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32342 POSTS0 COMMENTS
Milvus
87 POSTS0 COMMENTS
Nango Kala
6712 POSTS0 COMMENTS
Nicole Veronica
11875 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11937 POSTS0 COMMENTS
Shaida Kate Naidoo
6833 POSTS0 COMMENTS
Ted Musemwa
7092 POSTS0 COMMENTS
Thapelo Manthata
6786 POSTS0 COMMENTS
Umr Jansen
6789 POSTS0 COMMENTS