Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  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$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement