Computer >> Computer tutorials >  >> Programming >> PHP

quoted_printable_encode() function in PHP


The quoted_printable_encode() function is used to convert 8 bit string to the quoted printable string.

Syntax

quoted_printable_encode(str)

Parameters

  • str − It specifies the 8-bit string to be converted.

Return

The quoted_printable_encode() function returns the converted string.

Example

The following is an example −

<?php
   echo quoted_printable_encode("www.example.com")
?>

Output

The following is the output −

www.example.com