note 44114 added to function.str-rot13

From: Date: Thu, 15 Jul 2004 12:05:08 +0000
Subject: note 44114 added to function.str-rot13
Groups: php.notes 
Request: Send a blank email to php-notes+get-73292@lists.php.net to get a copy of this message
For versions of php <= 4.2.0 you can use: function rot13($str){ if (!function_exists('str_rot13')) { $from = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $to = 'nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM'; $rot13str = strtr($str, $from, $to); }else{ $rot13str = str_rot13($str); } return $rot13str; } ---- Manual Page -- http://www.php.net/manual/en/function.str-rot13.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44114 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44114&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44114&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#73292) next »