Base64 fwrite using php

后端 未结 3 1969
北恋
北恋 2021-01-25 22:10

I want to use fwrite to post $username in base64 encoded Here is my current source

$fp = fopen(\"id.txt\", \"a\");
fwrite($fp, \" $username\\r\\n\");
fclose($fp         


        
3条回答
  •  无人共我
    2021-01-25 22:54

    Did you try a Google search or reading the PHP documentation?

    http://php.net/manual/en/function.base64-encode.php

提交回复
热议问题