PHP str_rot13() Function
The str_rot13()
function is used to perform the ROT13 encoding on string.
This function encodes shifts every letter 13 place in the alphabet Numeric and non-alphabetical characters remains untouched.
Syntax
str_rot13(string)
- string - (Required) Specifies the string to encode.
Example
<?php echo str_rot13("GOOD EVENING"); echo "<br>"; echo str_rot13("TBBQ RIRAVAT"); ?>
Output
TBBQ RIRAVAT GOOD EVENING