PHP 8.5.0 Beta 1 available for testing

Voting

: zero minus zero?
(Example: nine)

The Note You're Voting On

ludwig at gramberg-webdesign dot de
17 years ago
my approach for quoted printable encode using the stream converting abilities

<?php
/**
* @param string $str
* @return string
* */
function quoted_printable_encode($str) {
$fp = fopen('php://temp', 'w+');
stream_filter_append($fp, 'convert.quoted-printable-encode');
fwrite($fp, $str);
fseek($fp, 0);
$result = '';
while(!
feof($fp))
$result .= fread($fp, 1024);
fclose($fp);
return
$result;
}
?>

<< Back to user notes page

To Top