SHARE
TWEET

Untitled

a guest Jul 20th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $chaine = "0@sn9sirppa@#?ia'jgtvryko1" ;
  4.  $length = strlen($chaine) ;
  5.  $cle = $length/2 ;
  6. //echo $cle ;
  7. $sousChaine = substr($chaine , 5 , $cle) ;
  8. //echo $sousChaine ;
  9. $espace = str_replace('@#?', ' ', $sousChaine);
  10. $message = strrev($espace) ;
  11. //echo $espace ;
  12. echo $message ;
  13.  
  14. ?>
  15.  
  16. val@val-ThinkPad-T410:~/work$ php papyrus.php
  17. j'ai appris
  18.  
  19.  
  20.  
  21. val@val-ThinkPad-T410:~/work$ php papyrus.php
  22. toutes les ficelles
  23.  
  24.  
  25.  
  26. val@val-ThinkPad-T410:~/work$ php papyrus.php
  27. des strings
  28.  
  29.  
  30.  
  31. val@val-ThinkPad-T410:~/work$
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top