I Need Reverse Function in PHP for the Following JavaScript!
function jsrev(a) {
return a.replace(/[a-zA-Z]/g, function(c) {
return String.fromCharCode((c <= "Z" ? 90 : 122) >= (c = c.charCodeAt(0) + 13) ? c : c - 26)
})
}
The above function convert string:-
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
to "NOPQRSTUVWXYZABCDEFGHIJKLM"
in JavaScript
but i need function to reverse 2nd
string to 1st
in PHP.