fork download
  1. <?php
  2. // Texto original: Hello_World!
  3. // Texto após btoa(): SGVsbG9fV29ybGQh
  4.  
  5. $valor = "SGVsbG9fV29ybGQh"; //Imagina que é o valor retornado do Request
  6. $valor = base64_decode($valor);
  7.  
  8. $explode = explode("_", $valor);
  9.  
  10. echo "<pre>";
  11. print_r($explode);
  12. echo "</pre>";
  13. ?>
  14.  
Success #stdin #stdout 0.02s 23896KB
stdin
Standard input is empty
stdout
<pre>Array
(
    [0] => Hello
    [1] => World!
)
</pre>