Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $chaine = "0@sn9sirppa@#?ia'jgtvryko1" ;
- $length = strlen($chaine) ;
- $cle = $length/2 ;
- //echo $cle ;
- $sousChaine = substr($chaine , 5 , $cle) ;
- //echo $sousChaine ;
- $espace = str_replace('@#?', ' ', $sousChaine);
- $message = strrev($espace) ;
- //echo $espace ;
- echo $message ;
- ?>
- val@val-ThinkPad-T410:~/work$ php papyrus.php
- j'ai appris
- val@val-ThinkPad-T410:~/work$ php papyrus.php
- toutes les ficelles
- val@val-ThinkPad-T410:~/work$ php papyrus.php
- des strings
- val@val-ThinkPad-T410:~/work$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement