Hello everyone, welcome to my today's post on PHP. In my last tutorial, we learned about "How to str_replace Function work?". Hope you enjoyed that tutorial. Today we are going to learn about "How to str_rot13 function work?". So, Let's start -
This function performs the ROT13 encoding on the str argument and returns the resulting string. The ROT13 encoding simply shifts every letter by 13 places in the alphabet while leaving non-alpha characters untouched.

Encoding and decoding are done by the same function, passing an encoded string as argument will return the original version.
string str_rot13 ( string str )

The behaviour of this function was buggy until PHP 4.3.0. Before this, the str was also modified, as if passed by reference.
Was this information useful? What other tips would you like to read about in the future? Share your comments, feedback and experiences with us by commenting below!
Like our site? Be a member of Coolajax fan page to get daily posts updates!
You May Like This Posts!
» How to strpos function works?
» How to strnatcmp function works?
» How to str_rot13 function work?
Tags:
str_rot13 , str_rot13 in php, str_rot13 example, str_rot13 code, how to use str_rot13 , str_rot13 case , replace string in php , php,tutorials, php code, str_ireplace script, str_rot13 function
Total Read: 747 Topics