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)); ?> |
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
Recommended Posts:
- How to call a function that return another function in JavaScript ?
- How to get the function name inside a function in PHP ?
- How to get the function name from within that function using JavaScript ?
- D3.js | d3.max() function
- PHP | Ds\Set add() Function
- PHP | Ds\Set xor() Function
- PHP | Ds\Map xor() Function
- PHP | Ds\Map put() Function
- PHP | each() Function
- PHP | pow( ) Function
- PHP | key() Function
- CSS | rgb() Function
- PHP | min( ) Function
- PHP | pos() Function
- p5.js | hex() function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



