PHP string str_rot13() functionThe 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.Syntax:
Example 1Output: Before using str_rot13() function:Hello PHP Before using str_rot13() function:Uryyb CUC Example 2Output: Before using str_rot13() function:Uryyb CUC After using str_rot13() function:Hello PHP Example 3Output: Both string is is Equall: Hello PHP = Hello PHP Reference: http://php.net/manual/en/function.str-rot13.phpNext TopicPHP String |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India