From ba8b96491f4a17ce23fe489a0cb7a2c16168fab0 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Sat, 15 Dec 2001 14:52:20 +0000 Subject: [PATCH] added str_rot13 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@65176 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/strings.xml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/functions/strings.xml b/functions/strings.xml index 5c4911941c..a578c963ae 100644 --- a/functions/strings.xml +++ b/functions/strings.xml @@ -1,5 +1,5 @@ - + String functions Strings @@ -1871,6 +1871,30 @@ END; + + + str_rot13 + Perform the rot13 transform on a string + + + Description + + + string str_rot13 + string str + + + + 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. + + + +