Php str rot13
From w3cyberlearnings
Contents |
PHP function str_rot13
This function returns encode or decode of the ROT13 on a string. Encode and Decode use the same function.
Syntax str_rot13
- string: string
str_rot13 (string)
Example 1
<?php $n1 = 'Hello World'; $encode_rot13 = str_rot13($n1); $decode_rot13 = str_rot13($encode_rot13); echo 'Encode: ' . $encode_rot13; echo '<br/>'; echo 'Decode: ' . $decode_rot13; ?>
Output
Encode: Uryyb Jbeyq Decode: Hello World