The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled PHP Code
Posted by: Keen | September 10, 2010 @ 8:26am
PHP Code
[
Download
]
Func Rot13($input) Local $c, $roted, $char, $asciiN $roted = "" For $c = 1 to StringLen($input) $char = String(StringMid($input,$c,1)) $asciiN = Asc($char) Select Case (65 <= $asciiN AND $asciiN <= 90) If $asciiN <= 77 Then $asciiN = $asciiN + 13 Else $asciiN = $asciiN - 13 EndIf Case (97 <= $asciiN AND $asciiN <= 122) If $asciiN <= 109 Then $asciiN = $asciiN + 13 Else $asciiN = $asciiN - 13 EndIf Case (48 <= $asciiN AND $asciiN <= 57) If $asciiN <= 52 Then $asciiN = $asciiN + 5 Else $asciiN = $asciiN - 5 EndIf EndSelect $roted = $roted & Chr($asciiN) Next Return $roted EndFunc
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.31 / 8
42 Votes
http://codebin.yi.org/835
page generated in 0.00 seconds