I'm working the webpage that I have some text like this:
AA,BB,CC,A1,B2,C3
And I want some code to replace the the word (like AA) to the string that saved in variable for example this is my php variable:
<?php
$var1 = "A"; //For AA
$var2 = "B"; //For BB
$var3 = "C"; //For CC
$var4 = "1"; //For A1
$var5 = "2"; //For B2
$var6 = "3"; //For C3
?>
And the text AA,BB,CC,A1,B2,B3 will be like this:
ABC123
How can I do this with php?
In summery I need a decryption algorithm for a cypher text of AA,BB,CC,A1,B2,C3
to be converted as plan text of ABC123
.