Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/08/2016, 23:24
czfritz
 
Fecha de Ingreso: agosto-2010
Ubicación: peru
Mensajes: 115
Antigüedad: 13 años, 8 meses
Puntos: 0
convertir js a php

hola buen día amigos quisiera convertir este codigo js a php
por favor brindeme una manito
Código HTML:
<!DOCTYPE html>
<html>
<body>

<p>Click the button to display the character of the specified unicode number.</p>

<button onclick="myFunction()">Try it</button>

<p id="demo"></p>

<script>
function ro(a){return/uggc/i.test(a)?a.replace(/[a-zA-Z]/g,function(a){return String.fromCharCode(("Z">=a?90:122)>=(a=a.charCodeAt(0)+13)?a:a-26)}):a}
function myFunction() {
    //var res = String.fromCharCode(("Z">=a?90:122)>=(a=a.charCodeAt(0)+13)?a:a-26)});
    
    document.getElementById("demo").innerHTML =ro("uggc://ohyynsvan.vasb/ohbet/g2/Nygreangvib/3%20Qbbef%20Qbja/urer-jvgubhg-lbh.fjs");
}

</script>

</body>
</html> 
por favor yo se que esta en bue tras manos