AndrewP
-
Posts
1 -
Joined
-
Last visited
Never
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
For every X, replace it with Y
in PHP Coding Help
Posted
Hi,
I'm pretty new to PHP, and I'm trying to write my own encoding/decoding script (not with base_64).
I'd like to replace like all A's with B's, all B's with C's, C's with D's, and so on. How would I do this? Here's an example:
String #1: "ABCDEFG"
string #1 goes through my encryption
string #2 (output): "BCDEFGH".
How would I go about doing this? Thanks.