How to str_rot13 function work?

 Published April 23,2010 in PHP

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.

How to str_rot13 function   work?

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

- How to write str_rot13 Function:

string str_rot13 ( string str )

- Write a live Example of str_rot13 function:

How to use str_rot13 function in php

Demo

- Important notes about str_rot13 function:

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!

recommended-tutorial You May Like This Posts!

» How to strpos function works?

» How to strnatcmp function works?

» How to str_rot13 function work?

» How to substr function works?

» Classified Made Easy

  tuts_view Total Read: 747
blog comments powered by Disqus

Topics

Coolajax Fans

coolajax fan page on Facebook