$str='pof ho poff rg poffff '; echo base64_encode($str); echo base64_decode($str); 

Why is the original string not exiting? When do you need to use the base64_encode function, and when with crypt?

    1 answer 1

    Because when encoding, the result is not saved in $ str

     $str='pof ho poff rg poffff '; $str = base64_encode($str); echo $str; echo base64_decode($str);