|
|
Tutorials » Php »
|
Topic |
What is str_rot13 Function?
|
|
Explanation |
|
In PHP this function is used to perform the rot13 encoding to transform a string.
Syntax:
sha1_file(string)
In the above syntax "string" specifies the text to do the encoding.
Example:
<?php
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
|
|
A Note |
Learn PHP programming language tutorial with simple and neat example. Hope you enjoy this free tutorial.
Do give us your valuable feedback and suggestions on this online tutorial. This is a Copyright Content.
|
|
|
|