PHP String quoted_printable_decode() Function17 Mar 2025 | 2 min read The quoted_printable_decode() function is a built-in function of PHP, which converts a quoted-printable string to an 8-bit string. This function returns back an 8-bit binary string. The quoted_printable_decode() function is similar to the imap_qprint() function and opposite to the quoted_printable_encode() function. The syntax of this function is given below: SyntaxParameterstr (mandatory) - This function has only one string parameter as input which will be converted into an 8-bit string. It is a mandatory parameter. Values ReturnIt returns the 8-bit binary string. Supported PHP versionThis function can be implemented by PHP 4+ versions ExampleThere are some examples given below, which will help us to understand the quoted_printable_decode() function and it?s working in a better way. Example 1 It will decode a quoted-printable string to an 8-bit ASCII string. Browser Output: The browser output of the following code will be: Welcome to javaTpoint website. HTML Output: The HTML output can be seen by right clicking on browser output in browser and select View page source. The HTML output for the following code will be: ![]() Example 2 Browser Output: The browser output of the following code will be: javaTpoint HTML Output: ![]() Note: The quoted_printable_decode() function is used in mail handling in PHP. Most of the times it contains quoted-printable such as =0A, 0D, etc. Therefore PHP provides the built-in functions to deal with such mails to generate plain 8-bit strings.Next TopicPHP String Functions |
PHP Function PHP function is predefined string function, which is used to encodes a string using the uuencode algorithm. It returns the uuencoded data. Note: By using "Uuencoded function" the uuencoded data is 35% larger than the original. Syntax: convert_uuencode(string) Parameter Description Required/Optional String The string to uuencode Required Example 1 <?php // encode the string $str2...
1 min read
PHP String Function The function is the in-built function of PHP. It is used to get numeric information. This function returns an array which contains local numeric and monetary formatting information. This function is a non-parameterized function, so we do not need to pass anything...
5 min read
function in PHP The is a case-insensitive, built-in function of PHP. It compares two strings for the first n characters. This function is similar to the strcasecmp() function with a difference. In , we can specify the number of characters from both the strings for...
3 min read
PHP function PHP function is predefined function. It is used to calculate the metaphone key of a string. It is useful to text search and text matching application. It is phonetic algorithm developed by Lawrence Philips. The algorithm produces variable length keys as output. Syntax: string metaphone (...
1 min read
PHP string function PHP string is predefine function. It is used to compare two given string. It is binary safe and case-insensitive. It is similar to the strncasecmp() function. It returns: If the two strings are equal: [ 0 ] If string1 is less than string2: [<...
1 min read
PHP string Function PHP string is predefined function. It is used to replace some character with some other characters. It is case-insensitive version of str_replace(). Note: This function is binary-safe. Syntax: str_ireplace(find,replace,string,count); Parameter Description Required/Optional find Specify the value to find. Required replace Specify the value to replace. Required string Specify the string to be searched Required Count It is variable that...
1 min read
PHP String Function The is a built-in function of PHP. It counts the number of times a substring occurs in the given string. The is a case-sensitive function, which means it treats uppercase and lowercase alphabets differently. For example - A substring "cha" is not...
3 min read
PHP Function PHP function is important string function, which is used to calculate the crc32( cyclic redundancy checksum ) polynomial of a string. It can be used to validate data integrity. Note : you are using function then, you must have to use %u formatter...
1 min read
PHP Function PHP function is used to return a quote string with slashes. It works with some characters: Single quote (') Double quote(") Blackslash(|) NUL (the NUL byte) Syntax: string addslashes ( string $str ); Parameter Description Required/Optional string String to be escaped Required Example 1 <?php $str = 'What does "WHO" mean?'; echo "Your string is :".$str; echo "<br>"."By using...
1 min read
PHP Function PHP function is important string function. It is used to display one or more strings. In another words we can say that the function outputs one or more string. Note: The function is a little faster than print(). Syntax: void echo ( string...
1 min read
We request you to subscribe our newsletter for upcoming updates.
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India