PHP str_rot13 Function

What is str_rot13 Function?


In PHP this function is used to perform the rot13 encoding to transform a string.



In the above syntax "string" specifies the text to do the encoding.

Example :

echo str_rot13("Good Morning");
echo "<br />";
echo str_rot13("Tbbq Zbeavat");
Result :

Tbbq Zbeavat
Good Morning

In the above example the string "Good Morning" is encoded using the str_rot13 function, and the encoded string is done vice versa

PHP Topics

Ask Questions

Ask Question