ROT13 Encode and Decode using PHP

str_rot13 function

<?php

$text = 'Hello';
$rot13 = str_rot13($text);
echo $rot13.PHP_EOL;

$text = str_rot13($rot13);
echo $text;

Leave a Comment

Cancel reply

Your email address will not be published.