Javatpoint Logo
Javatpoint Logo

PHP string str_rot13() function

The str_rot13() is in-built PHP function. It is used to perform the ROT12 encoding on string.

This function encodes shifts every letter 13 place in the alphabet while numeric and non0alphabeticall characters remains untouched.

Note: This function encodes or decodes the data by same function.


Parameter Description Required/Optional
String Specify the string to encode required

Example 1


Before using str_rot13() function:Hello PHP
Before using str_rot13() function:Uryyb CUC

Example 2


Before using str_rot13() function:Uryyb CUC
After using str_rot13() function:Hello PHP

Example 3


Both string is is Equall: Hello PHP = Hello PHP

Next TopicPHP String

Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA